コード例 #1
0
        private void gridCarePlans_CellDoubleClick(object sender, UI.ODGridClickEventArgs e)
        {
            FormEhrCarePlanEdit formEdit = new FormEhrCarePlanEdit(_listCarePlans[e.Row]);

            if (formEdit.ShowDialog() == DialogResult.OK)
            {
                FillCarePlans();
            }
        }
コード例 #2
0
        private void gridEobs_CellDoubleClick(object sender, UI.ODGridClickEventArgs e)
        {
            FormEtrans835Edit Form835 = new FormEtrans835Edit();

            Form835.EtransCur      = _etrans;
            Form835.MessageText835 = _messageText835;
            Form835.TranSetId835   = _listEobTranIds[gridEobs.SelectedIndices[0]];
            Form835.Show();            //Not attached to parent window because the user may have to close parent window to navigate other areas of the program.
        }
コード例 #3
0
 private void gridMain_CellDoubleClick(object sender, UI.ODGridClickEventArgs e)
 {
     //SelectedWikiPage=listWikiPages[e.Row];
     if (checkDeletedOnly.Checked)
     {
         return;
     }
     wikiPageTitleSelected = listWikiPageTitles[e.Row];
     DialogResult          = DialogResult.OK;
 }
コード例 #4
0
        private void gridMain_CellDoubleClick(object sender, UI.ODGridClickEventArgs e)
        {
            SelectedPatNum = listPats[e.Row].PatNum;
            //Security log for patient select.
            Patient pat = Patients.GetPat(SelectedPatNum);

            SecurityLogs.MakeLogEntry(Permissions.SheetEdit, SelectedPatNum, "Web form import from: " + LnameEntered + ", " + FnameEntered + " " + BdateEntered.ToShortDateString()
                                      + "\r\nUser selected pat: " + pat.LName + ", " + pat.FName + " " + pat.Birthdate.ToShortDateString());
            DialogResult = DialogResult.OK;
        }
コード例 #5
0
        private void gridTabNames_CellDoubleClick(object sender, UI.ODGridClickEventArgs e)
        {
            OrthoChartTab         orthoChartTab = (OrthoChartTab)gridTabNames.ListGridRows[e.Row].Tag;
            FormOrthoChartTabEdit form          = new FormOrthoChartTabEdit(orthoChartTab);

            if (form.ShowDialog() == DialogResult.OK)
            {
                FillGridTabNames();
            }
        }
コード例 #6
0
        private void gridSubs_CellClick(object sender, UI.ODGridClickEventArgs e)
        {
            butAddJob.Text = "Add Job";          //Always reset
            if (e.Row == -1 || gridSubs.SelectedIndices.Length != 1)
            {
                bugSubmissionControl.ClearCustomerInfo();
                _subCur            = null;
                labelDateTime.Text = "";
                labelHashNum.Text  = "";
                bugSubmissionControl.SetTextDevNoteEnabled(false);
                return;
            }
            bugSubmissionControl.SetTextDevNoteEnabled(true);
            _subCur = ((List <BugSubmission>)gridSubs.ListGridRows[e.Row].Tag)[0];
            if (_dictPatients.ContainsKey(_subCur.RegKey))
            {
                _patCur = _dictPatients[_subCur.RegKey];
            }
            else
            {
                try {
                    RegistrationKey key = RegistrationKeys.GetByKey(_subCur.RegKey);
                    _patCur = Patients.GetPat(key.PatNum);
                }
                catch (Exception ex) {
                    ex.DoNothing();
                    _patCur = new Patient();                  //Just in case, needed mostly for debug.
                }
                _dictPatients.Add(_subCur.RegKey, _patCur);
            }
            List <BugSubmission> listSubs = _listAllSubs;

            if (comboGrouping.SelectedIndex.In(1, 2, 3, 4, 5))
            {
                listSubs = ((List <BugSubmission>)gridSubs.ListGridRows[gridSubs.GetSelectedIndex()].Tag);
            }
            butAddJob.Tag = null;
            bugSubmissionControl.RefreshData(_dictPatients, comboGrouping.SelectedIndex, listSubs);          //New selelction, refresh control data.
            bugSubmissionControl.RefreshView(_subCur);
            labelDateTime.Text = POut.DateT(_subCur.SubmissionDateTime);
            labelHashNum.Text  = POut.Long(_subCur.BugSubmissionHashNum);
            if (_subCur.BugId != 0)
            {
                List <JobLink> listJobLink = _listJobLinks.Where(x => x.FKey == _subCur.BugId).ToList();
                if (listJobLink.Count == 1)
                {
                    butAddJob.Text = "View Job";
                    butAddJob.Tag  = listJobLink.First();
                }
            }
            if (_viewMode.In(FormBugSubmissionMode.SelectionMode, FormBugSubmissionMode.ValidationMode))
            {
                butAddJob.Text = "OK";
            }
        }
コード例 #7
0
        private void gridMain_CellDoubleClick(object sender, UI.ODGridClickEventArgs e)
        {
            SelectedPatNum = listPats[e.Row].PatNum;
            //Security log for patient select.
            Patient pat = Patients.GetPat(SelectedPatNum);

            SecurityLogs.MakeLogEntry(Permissions.SheetEdit, SelectedPatNum, "In the 'Pick Patient for Web Form', this user double clicked a name in the suggested list.  "
                                      + "This caused the web form for this patient: " + LnameEntered + ", " + FnameEntered + " " + BdateEntered.ToShortDateString() + "  "
                                      + "to be manually attached to this other patient: " + pat.LName + ", " + pat.FName + " " + pat.Birthdate.ToShortDateString());
            DialogResult = DialogResult.OK;
        }
コード例 #8
0
        private void gridAdjusts_CellClick(object sender, UI.ODGridClickEventArgs e)
        {
            //Update text boxes here
            AccountEntry entry = (AccountEntry)gridAdjusts.SelectedGridRows[0].Tag;             //Only one can be selected at a time.

            labelAmtOriginal.Text = entry.AmountOriginal.ToString("F");                         //Adjustment's start original - Negative or positive it doesn't matter.
            labelAmtUsed.Text     = (entry.AmountOriginal - entry.AmountStart).ToString("F");   //Amount of Adjustment that's been used elsewhere
            labelAmtAvail.Text    = entry.AmountStart.ToString("F");                            //Amount of Adjustment that's left available
            labelCurSplitAmt.Text = (-PaySplitCurAmt).ToString("F");                            //Amount of current PaySplit (We can only access this window from current PaySplitEdit window right now)
            labelAmtEnd.Text      = ((double)entry.AmountStart - PaySplitCurAmt).ToString("F"); //Amount of Adjustment after everything.
        }
コード例 #9
0
ファイル: FormWikiSearch.cs プロジェクト: royedwards/DRDNet
 private void gridMain_CellDoubleClick(object sender, UI.ODGridClickEventArgs e)
 {
     //SelectedWikiPage=listWikiPages[e.Row];
     if (checkArchivedOnly.Checked)
     {
         return;
     }
     wikiPageTitleSelected = listWikiPageTitles[e.Row];
     NavToPage(wikiPageTitleSelected);
     Close();
 }
コード例 #10
0
        private void gridClaims_CellDoubleClick(object sender, UI.ODGridClickEventArgs e)
        {
            if (!Security.IsAuthorized(Permissions.ClaimView))
            {
                return;
            }
            Claim claim = Claims.GetClaim(((Claim)gridClaims.ListGridRows[e.Row].Tag).ClaimNum); //This is the easiest way to determine if the claim was deleted.

            if (claim == null)                                                                   //Was deleted.
            {
                MsgBox.Show(this, "Claim has been deleted by another user.");
                gridClaims.BeginUpdate();
                gridClaims.ListGridRows.RemoveAt(e.Row);                //This will also deselect the row.
                gridClaims.EndUpdate();
                return;
            }
            FormClaimEdit formCE = new FormClaimEdit(claim, Patients.GetPat(_patNum), Patients.GetFamily(_patNum));

            formCE.ShowDialog();
            claim = Claims.GetClaim(((Claim)gridClaims.ListGridRows[e.Row].Tag).ClaimNum); //This is the easiest way to determine if the claim was deleted.
            if (claim == null)                                                             //Was deleted.
            {
                gridClaims.BeginUpdate();
                gridClaims.ListGridRows.RemoveAt(e.Row);                //This will also deselect the row.
                gridClaims.EndUpdate();
                return;
            }
            if (formCE.DialogResult == DialogResult.OK)
            {
                //Update row
                UI.GridRow row = new UI.GridRow();
                row.Tag = claim;
                row.Cells.Add(claim.DateService.ToShortDateString());                           //DOS
                row.Cells.Add(Carriers.GetName(InsPlans.RefreshOne(claim.PlanNum).CarrierNum)); //Carrier
                row.Cells.Add(Claims.GetClaimStatusString(claim.ClaimStatus));                  //Status
                if (PrefC.HasClinicsEnabled)                                                    //Using clinics
                {
                    Clinic clinic = Clinics.GetClinic(claim.ClinicNum);
                    if (clinic == null)
                    {
                        row.Cells.Add("");                        //Clinic
                    }
                    else
                    {
                        row.Cells.Add(clinic.Description);                        //Clinic
                    }
                }
                row.Cells.Add(claim.ClaimFee.ToString("f"));                //Claimfee
                gridClaims.BeginUpdate();
                gridClaims.ListGridRows[e.Row] = row;
                gridClaims.EndUpdate();
                gridClaims.SetSelected(e.Row, true);               //Reselect Row
            }
        }
コード例 #11
0
        ///<summary>When grid is clicked, show bug submissions grouped by version in Hash Data grid.</summary>
        private void gridHashes_CellClick(object sender, UI.ODGridClickEventArgs e)
        {
            Dictionary <string, List <BugSubmission> > dictSubStackTraces;
            object gridTagObj = gridHashes.ListGridRows[e.Row].Tag;

            if (gridTagObj is BugSubmissionHash)            //No Grouping
            {
                dictSubStackTraces = _dictBugSubsByHashNum[(gridTagObj as BugSubmissionHash).BugSubmissionHashNum]
                                     .GroupBy(x => x.ProgramVersion)
                                     .ToDictionary(x => x.Key, x => x.ToList());
            }
            else if (gridTagObj is List <BugSubmissionHash> )
            {
                dictSubStackTraces = new Dictionary <string, List <BugSubmission> >();
                foreach (BugSubmissionHash hash in (gridTagObj as List <BugSubmissionHash>))
                {
                    _dictBugSubsByHashNum[hash.BugSubmissionHashNum]
                    .GroupBy(x => x.ProgramVersion)
                    .ForEach(x => {
                        if (dictSubStackTraces.ContainsKey(x.Key))
                        {
                            dictSubStackTraces[x.Key].AddRange(x.ToList());
                        }
                        else
                        {
                            dictSubStackTraces.Add(x.Key, x.ToList());
                        }
                    });
                }
            }
            else
            {
                MsgBox.Show("Error loading Hash Details: Unknown Tag");
                return;
            }
            gridHashData.BeginUpdate();
            gridHashData.ListGridRows.Clear();
            foreach (string key in dictSubStackTraces.Keys)
            {
                BugSubmission sub = dictSubStackTraces[key].OrderBy(x => new Version(x.ProgramVersion)).Last();              //Most recent version.
                BugSubmissionHashes.ProcessSubmission(sub
                                                      , out long matchedBugId, out string matchedFixedVersions, out long matchedBugSubmissionHashNum
                                                      , useConnectionStore: false
                                                      );
                string versionSubmitted = new Version(sub.ProgramVersion).ToString();
                string countRegKeys     = dictSubStackTraces[key].Select(x => x.RegKey).Distinct().Count().ToString();
                string countTotalSubs   = dictSubStackTraces[key].Count().ToString();
                gridHashData.AddRow(tag: dictSubStackTraces[key], versionSubmitted, countRegKeys, countTotalSubs, (matchedFixedVersions ?? ""));
            }
            gridHashData.EndUpdate();
            gridSubs.BeginUpdate();
            gridSubs.ListGridRows.Clear();
            gridSubs.EndUpdate();
        }
コード例 #12
0
        private void gridMain_CellDoubleClick(object sender, UI.ODGridClickEventArgs e)
        {
            FormContactEdit FormCE = new FormContactEdit();

            FormCE.ContactCur = ContactList[e.Row];
            FormCE.ShowDialog();
            if (FormCE.DialogResult == DialogResult.OK)
            {
                FillGrid();
            }
        }
コード例 #13
0
 private void gridCourses_CellClick(object sender, UI.ODGridClickEventArgs e)
 {
     if (!_isCourseSelected)
     {
         FillInstructors();
         _isCourseSelected = true;
     }
     if (_isInstructorSelected)
     {
         FillStudents();
     }
 }
コード例 #14
0
        private void gridGroups_CellDoubleClick(object sender, UI.ODGridClickEventArgs e)
        {
            FeeSchedGroup         feeSchedGroupCur = (FeeSchedGroup)gridGroups.ListGridRows[e.Row].Tag;
            FormFeeSchedGroupEdit formFG           = new FormFeeSchedGroupEdit(feeSchedGroupCur);

            formFG.ShowDialog();
            if (formFG.DialogResult == DialogResult.OK)
            {
                FeeSchedGroups.Update(feeSchedGroupCur);
            }
            //Still need to refresh incase the user deleted the FeeSchedGroup, since it returns DialogResult.Cancel.
            FilterFeeSchedGroups();
        }
コード例 #15
0
        private void gridSubs_CellClick(object sender, UI.ODGridClickEventArgs e)
        {
            if (e.Row == -1 || gridSubs.SelectedIndices.Length > 1)
            {
                SetCustomerInfo();                //Clears customer info, stackTrace and info.
                return;
            }
            BugSubmission sub = ((List <BugSubmission>)gridSubs.Rows[e.Row].Tag)[0];

            textStack.Text = sub.ExceptionMessageText + "\r\n" + sub.ExceptionStackTrace;
            FillOfficeInfoGrid(sub);
            SetCustomerInfo(sub);
        }
コード例 #16
0
 private void gridMain_CellDoubleClick(object sender, UI.ODGridClickEventArgs e)
 {
     if (_isSetupMode)
     {
         QuickPasteNote quickNote = (QuickPasteNote)gridMain.ListGridRows[gridMain.GetSelectedIndex()].Tag;
         ShowEditWindow(quickNote);
     }
     else
     {
         InsertValue(((QuickPasteNote)gridMain.ListGridRows[gridMain.GetSelectedIndex()].Tag).Note);
         DialogResult = DialogResult.OK;
     }
 }
コード例 #17
0
ファイル: FormWikiHistory.cs プロジェクト: kjb7749/testImport
 private void gridMain_CellDoubleClick(object sender, UI.ODGridClickEventArgs e)
 {
     //MsgBoxCopyPaste mbox = new MsgBoxCopyPaste(ListWikiPageHists[e.Row].PageContent);
     //mbox.ShowDialog();
     //FormWikiEdit FormWE = new FormWikiEdit();
     //FormWE.WikiPageCur=listWikiPages[gridMain.SelectedIndices[0]];
     //FormWE.ShowDialog();
     //if(FormWE.DialogResult!=DialogResult.OK) {
     //  return;
     //}
     //FillGrid();
     //LoadWikiPage(listWikiPages[0]);
 }
コード例 #18
0
        private void gridObservations_CellDoubleClick(object sender, UI.ODGridClickEventArgs e)
        {
            EhrAptObs         obs   = (EhrAptObs)gridObservations.ListGridRows[e.Row].Tag;
            FormEhrAptObsEdit formE = new FormEhrAptObsEdit(obs);

            if (formE.ShowDialog() == DialogResult.OK)
            {
                if (obs.EhrAptObsNum != 0)               //Was not deleted.
                {
                    EhrAptObses.Update(obs);
                }
                FillGridObservations();
            }
        }
コード例 #19
0
        private void gridNotes_CellDoubleClick(object sender, UI.ODGridClickEventArgs e)
        {
            FormEhrLabNoteEdit FormLNE = new FormEhrLabNoteEdit();

            FormLNE.IsImport   = IsImport;
            FormLNE.IsViewOnly = IsViewOnly;
            FormLNE.LabNoteCur = EhrLabResultCur.ListEhrLabResultNotes[e.Row];
            FormLNE.ShowDialog();
            if (IsImport || IsViewOnly || FormLNE.DialogResult != DialogResult.OK)
            {
                return;
            }
            EhrLabResultCur.ListEhrLabResultNotes[e.Row] = FormLNE.LabNoteCur;
            FillGridNotes();
        }
コード例 #20
0
        ///<summary>When grid is clicked, show individual bug submissions in Submissions grid.</summary>
        private void gridHashData_CellClick(object sender, UI.ODGridClickEventArgs e)
        {
            List <BugSubmission> listSelectedSubmissions = gridHashData.SelectedTag <List <BugSubmission> >();

            gridSubs.BeginUpdate();
            gridSubs.ListGridRows.Clear();
            listSelectedSubmissions.ForEach(x => {
                string submitterName = x.RegKey;
                if (_dictPatients.TryGetValue(x.RegKey, out Patient pat))
                {
                    submitterName = pat.GetNameLF();
                }
                gridSubs.AddRow(tag: x, x.SubmissionDateTime.ToString(), submitterName, x.ExceptionMessageText);
            });
            gridSubs.EndUpdate();
        }
コード例 #21
0
        private void gridMain_CellDoubleClick(object sender, UI.ODGridClickEventArgs e)
        {
            SelectedPlan = (DiscountPlan)gridMain.ListGridRows[gridMain.GetSelectedIndex()].Tag;
            if (IsSelectionMode)
            {
                DialogResult = DialogResult.OK;
                return;
            }
            FormDiscountPlanEdit FormDPE = new FormDiscountPlanEdit();

            FormDPE.DiscountPlanCur = SelectedPlan.Copy();
            if (FormDPE.ShowDialog() == DialogResult.OK)
            {
                FillGrid();
            }
        }
コード例 #22
0
        private void gridObservations_CellClick(object sender, UI.ODGridClickEventArgs e)
        {
            if (gridObservations.SelectedIndices.Length > 1)
            {
                return;                //Do not select group if the user has selected more than one item (otherwise it would deselect some of the rows the user clicked, which would make using the group button impossible).
            }
            //Select all observations which are in the same group.
            VaccineObs vaccineObsGroup = _listVaccineObservationGroups[e.Row];

            gridObservations.SetSelected(false);            //Deselect all.
            for (int i = 0; i < _listVaccineObservationGroups.Count; i++)
            {
                if (_listVaccineObservationGroups[i] == vaccineObsGroup)
                {
                    gridObservations.SetSelected(i, true);
                }
            }
        }
コード例 #23
0
        private void gridMain_CellDoubleClick(object sender, UI.ODGridClickEventArgs e)
        {
            Fee         fee    = (Fee)gridMain.Rows[e.Row].Tag;
            FormFeeEdit FormFE = new FormFeeEdit();

            if (fee.FeeNum == 0)
            {
                FormFE.IsNew = true;
                fee.CodeNum  = _procCode.CodeNum;
                Fees.Insert(fee);                //Pre-insert the fee before opening the edit window.
            }
            FormFE.FeeCur = fee;
            FormFE.ShowDialog();
            if (FormFE.DialogResult == DialogResult.OK)
            {
                //FormFE could have manipulated the fee.  Refresh our local cache and grids to reflect the changes.
                FillAndSortListFees();
                FillGrid();
            }
        }
コード例 #24
0
        private void gridInsPlans_CellDoubleClick(object sender, UI.ODGridClickEventArgs e)
        {
            Hx834_Member         member         = null;
            Hx834_HealthCoverage healthCoverage = null;

            if (gridInsPlans.ListGridRows[e.Row].Tag is Hx834_Member)
            {
                member = (Hx834_Member)gridInsPlans.ListGridRows[e.Row].Tag;
            }
            else
            {
                healthCoverage = (Hx834_HealthCoverage)gridInsPlans.ListGridRows[e.Row].Tag;
                member         = healthCoverage.Member;
            }
            FormPatientSelect FormPS = new FormPatientSelect(member.Pat);

            if (FormPS.ShowDialog() == DialogResult.OK)
            {
                member.Pat.PatNum = FormPS.SelectedPatNum;
                gridInsPlans.BeginUpdate();
                //Refresh all rows for this member to show the newly selected PatNum.
                //There will be multiple rows if there are multiple insurance plans for the member.
                for (int i = 0; i < gridInsPlans.ListGridRows.Count; i++)
                {
                    Hx834_Member memberRefresh = null;
                    if (gridInsPlans.ListGridRows[i].Tag is Hx834_Member)
                    {
                        memberRefresh = (Hx834_Member)gridInsPlans.ListGridRows[i].Tag;
                    }
                    else
                    {
                        memberRefresh = ((Hx834_HealthCoverage)gridInsPlans.ListGridRows[i].Tag).Member;
                    }
                    if (memberRefresh == member)
                    {
                        FillGridRow(gridInsPlans.ListGridRows[e.Row], member, healthCoverage);
                    }
                }
                gridInsPlans.EndUpdate();
            }
        }
コード例 #25
0
 private void gridAttachments_CellDoubleClick(object sender, UI.ODGridClickEventArgs e)
 {
     OpenFile();
 }
コード例 #26
0
ファイル: FormQuickPaste.cs プロジェクト: kjb7749/testImport
 private void gridMain_CellDoubleClick(object sender, UI.ODGridClickEventArgs e)
 {
     InsertValue(((QuickPasteNote)gridMain.Rows[gridMain.GetSelectedIndex()].Tag).Note);
     DialogResult = DialogResult.OK;
 }
コード例 #27
0
 private void gridClaims_CellClick(object sender, UI.ODGridClickEventArgs e)
 {
     FillClaimDetails(e.Row);
 }
コード例 #28
0
 private void gridEras_CellDoubleClick(object sender, UI.ODGridClickEventArgs e)
 {
     FormEtrans835Edit.ShowEra(_listEtrans[gridEras.SelectedIndices[0]]);
 }
コード例 #29
0
 private void gridInstructors_CellClick(object sender, UI.ODGridClickEventArgs e)
 {
     FillStudents();
     _isInstructorSelected = true;
 }
コード例 #30
0
 ///<summary>When grid is double clicked, open bug submission form.</summary>
 private void gridSubs_CellDoubleClick(object sender, UI.ODGridClickEventArgs e)
 {
     using (FormBugSubmission form = new FormBugSubmission(gridSubs.SelectedTag <BugSubmission>())){
         form.ShowDialog();
     }
 }