private void gridMain_CellLeave(object sender,ODGridClickEventArgs e) { /* Table.Rows[e.Row][e.Col]=gridMain.Rows[e.Row].Cells[e.Col].Text; Point cellSelected=new Point(gridMain.SelectedCell.X,gridMain.SelectedCell.Y); FillGrid();//gridMain.SelectedCell gets cleared. gridMain.SetSelected(cellSelected);*/ }
private void gridMain_CellDoubleClick(object sender,ODGridClickEventArgs e) { if(IsSelectionMode) { SelectedLoinc=listLoincSearch[e.Row]; DialogResult=DialogResult.OK; } //Nothing to do if not selection mode }
private void gridEdu_CellDoubleClick(object sender,ODGridClickEventArgs e) { FormEduResourceEdit FormERE = new FormEduResourceEdit(); FormERE.EduResourceCur=eduResourceList[e.Row]; FormERE.ShowDialog(); FillGrid(); }
private void gridMain_CellDoubleClick(object sender,ODGridClickEventArgs e) { EhrProvKey keycur=_listKeys[e.Row]; keycur.IsNew=false; FormEhrProviderKeyEdit formE=new FormEhrProviderKeyEdit(keycur); formE.ShowDialog(); FillGrid(); }
private void gridMain_CellDoubleClick(object sender,ODGridClickEventArgs e) { FormCentralConnectionEdit formC = new FormCentralConnectionEdit(); formC.CentralConnectionCur=ConnList[e.Row]; formC.ShowDialog(); FillGrid(); }
private void gridMain_CellLeave(object sender,ODGridClickEventArgs e) { //Save data from grid into table. No call to DB, so this should be safe. for(int i=0;i<gridMain.Rows.Count;i++) { TableItem.Rows[0][i+1]=gridMain.Rows[i].Cells[1].Text.Replace("\r\n","\n").Replace("\n","\r\n");//Column 0 of TableItems.Rows[0] is in the title bar, so it is off from the grid by 1. } //FillGrid();//Causes errors with tabbing between cells. We put the PK in the title bar to fix this (now it doesn't need to be refreshed). }
private void gridEdu_CellClick(object sender,ODGridClickEventArgs e) { if(e.Col!=1) { return; } bool didPrint = false; try { FormEhrEduBrowser FormEDUB = new FormEhrEduBrowser(eduResourceList[e.Row].ResourceUrl); FormEDUB.ShowDialog(); didPrint = FormEDUB.DidPrint; //System.Diagnostics.Process.Start(eduResourceList[e.Row].ResourceUrl); } catch { MessageBox.Show("Link not found."); return; } if(didPrint) { EhrMeasureEvent newMeasureEvent = new EhrMeasureEvent(); newMeasureEvent.DateTEvent=DateTime.Now; newMeasureEvent.EventType=EhrMeasureEventType.EducationProvided; newMeasureEvent.PatNum=patCur.PatNum; newMeasureEvent.MoreInfo=eduResourceList[e.Row].ResourceUrl; EhrMeasureEvents.Insert(newMeasureEvent); FillGridProvided(); } }
private void gridMain_CellDoubleClick(object sender,ODGridClickEventArgs e) { FormEhrMeasureEventEdit FormEMEE=new FormEhrMeasureEventEdit(_listEhrMeasureEvents[e.Row]); FormEMEE.ShowDialog(); if(FormEMEE.DialogResult==DialogResult.OK) { FillGrid(); } }
private void gridMain_CellDoubleClick(object sender,ODGridClickEventArgs e) { InputBox editWord=new InputBox("Edit word"); DictCustom origWord=DictCustoms.Listt[e.Row]; editWord.textResult.Text=origWord.WordText; if(editWord.ShowDialog()!=DialogResult.OK) { return; } if(editWord.textResult.Text==origWord.WordText) { return; } if(editWord.textResult.Text=="") { DictCustoms.Delete(origWord.DictCustomNum); DataValid.SetInvalid(InvalidType.DictCustoms); FillGrid(); return; } string newWord=Regex.Replace(editWord.textResult.Text,"[\\s]|[\\p{P}\\p{S}-['-]]","");//don't allow words with spaces or punctuation except ' and - in them for(int i=0;i<DictCustoms.Listt.Count;i++) {//Make sure it's not already in the custom list if(DictCustoms.Listt[i].WordText==newWord) { MsgBox.Show(this,"The word "+newWord+" is already in the custom word list."); editWord.textResult.Text=origWord.WordText; return; } } origWord.WordText=newWord; DictCustoms.Update(origWord); DataValid.SetInvalid(InvalidType.DictCustoms); FillGrid(); }
private void gridMain_CellDoubleClick(object sender,ODGridClickEventArgs e) { FormHL7DefSegmentEdit FormS=new FormHL7DefSegmentEdit(); FormS.HL7DefSegCur=HL7DefMesCur.hl7DefSegments[e.Row]; FormS.IsHL7DefInternal=IsHL7DefInternal; FormS.ShowDialog(); FillGrid(); }
private void gridMain_CellDoubleClick(object sender,ODGridClickEventArgs e) { LabPanel panel=listPanels[e.Row]; FormEhrLabPanelEdit formPE=new FormEhrLabPanelEdit(); formPE.PanelCur=panel; formPE.ShowDialog(); FillGrid(); }
private void gridMain_CellDoubleClick(object sender,ODGridClickEventArgs e) { if(IsSelectionMode) { SelectedCvx=(Cvx)gridMain.Rows[e.Row].Tag; DialogResult=DialogResult.OK; return; } }
private void gridMain_CellDoubleClick(object sender,ODGridClickEventArgs e) { FormPopupEdit FormPE=new FormPopupEdit(); FormPE.PopupCur=PopupList[e.Row]; FormPE.ShowDialog(); FillGrid(); }
private void gridMain_CellDoubleClick(object sender,ODGridClickEventArgs e) { FormSupplierEdit FormS=new FormSupplierEdit(); FormS.Supp=listSuppliers[e.Row]; FormS.ShowDialog(); if(FormS.DialogResult==DialogResult.OK) { FillGrid(); } }
private void gridMain_CellDoubleClick(object sender,ODGridClickEventArgs e) { FormEhrQuarterlyKeyEdit formE=new FormEhrQuarterlyKeyEdit(); EhrQuarterlyKey keycur=listKeys[e.Row]; keycur.IsNew=false; formE.KeyCur=keycur; formE.ShowDialog(); FillGrid(); }
private void gridMain_CellDoubleClick(object sender,ODGridClickEventArgs e) { FormAutoNoteControlEdit FormA=new FormAutoNoteControlEdit(); FormA.ControlCur=AutoNoteControls.Listt[e.Row]; FormA.ShowDialog(); if(FormA.DialogResult!=DialogResult.OK) { return; } FillGrid(); }
private void gridMain_CellDoubleClick(object sender,ODGridClickEventArgs e) { PayorType payorType=ListPayorTypes[e.Row]; FormPayorTypeEdit FormPTE=new FormPayorTypeEdit(payorType); FormPTE.ShowDialog(); if(FormPTE.DialogResult!=DialogResult.OK) { return; } FillGrid(); }
private void gridMain_CellDoubleClick(object sender,ODGridClickEventArgs e) { if(!IsSelectionMode) { return; } SelectedRxNorm=rxList[e.Row]; ListSelectedRxNorms=new List<RxNorm>(); ListSelectedRxNorms.Add(rxList[e.Row]); DialogResult=DialogResult.OK; }
private void gridMain_CellDoubleClick(object sender,ODGridClickEventArgs e) { FormPopupEdit FormPE=new FormPopupEdit(); int rowIndex=(int)gridMain.Rows[e.Row].Tag; FormPE.PopupCur=PopupList[rowIndex]; FormPE.ShowDialog(); if(FormPE.DialogResult==DialogResult.OK) { FillGrid(); } }
private void gridMain_CellDoubleClick(object sender,ODGridClickEventArgs e) { FormEhrTriggerEdit FormETE=new FormEhrTriggerEdit(); FormETE.EhrTriggerCur=ListEhrTriggers[e.Row]; FormETE.ShowDialog(); if(FormETE.DialogResult!=DialogResult.OK) { return; } ListEhrTriggers=EhrTriggers.GetAll(); FillGrid(); }
private void gridPopupAudit_CellDoubleClick(object sender,ODGridClickEventArgs e) { FormPopupEdit FormPE=new FormPopupEdit(); FormPE.PopupAudit=PopupCur; DateTime dateLastEdit=DateTime.MinValue; if(e.Row > 0 && ListPopupAud[e.Row-1].DateTimeEntry.Year > 1880) { FormPE.DateLastEdit=ListPopupAud[e.Row-1].DateTimeEntry; } FormPE.PopupCur=ListPopupAud[e.Row]; FormPE.ShowDialog(); }
private void gridMain_CellDoubleClick(object sender,ODGridClickEventArgs e) { if(IsSelectionMode) { CopyDefToEvaluation(); DialogResult=DialogResult.OK; return; } EvaluationDef evalDef=EvaluationDefs.GetOne(PIn.Long(gridMain.Rows[gridMain.GetSelectedIndex()].Tag.ToString())); FormEvaluationDefEdit FormEDE=new FormEvaluationDefEdit(evalDef); FormEDE.ShowDialog(); FillGrid(); }
private void gridMain_CellClick(object sender,ODGridClickEventArgs e) { if(!CDSPermissions.GetForUser(Security.CurUser.UserNum).ShowInfobutton) { return; } if(e.Col!=0) { return;//not infobutton column } FormInfobutton FormIB=new FormInfobutton(); FormIB.ListObjects=(List<object>)gridMain.Rows[e.Row].Tag; FormIB.ShowDialog(); }
private void gridSent_CellDoubleClick(object sender,ODGridClickEventArgs e) { FormReferralsPatient FormRP=new FormReferralsPatient(); FormRP.DefaultRefAttachNum=_listHistorySent[gridSent.GetSelectedIndex()].FKey; FormRP.PatNum=PatCur.PatNum; FormRP.IsSelectionMode=true; if(FormRP.ShowDialog()==DialogResult.Cancel) { return; } _listHistorySent[gridSent.GetSelectedIndex()].FKey=FormRP.RefAttachNum; EhrMeasureEvents.Update(_listHistorySent[gridSent.GetSelectedIndex()]); FillGridSent(); }
private void gridMain_CellDoubleClick(object sender,ODGridClickEventArgs e) { if(IsSelectionMode) { SelectedAllergyDefNum=listAllergyDefs[e.Row].AllergyDefNum; DialogResult=DialogResult.OK; } else { FormAllergyDefEdit formA=new FormAllergyDefEdit(); formA.AllergyDefCur=listAllergyDefs[gridMain.GetSelectedIndex()]; formA.ShowDialog(); FillGrid(); } }
private void gridOrder_CellDoubleClick(object sender,ODGridClickEventArgs e) { FormSupplyOrderEdit FormSOE = new FormSupplyOrderEdit(); FormSOE.ListSupplier = ListSuppliers; FormSOE.Order = ListOrders[e.Row]; FormSOE.ShowDialog(); if(FormSOE.DialogResult!=DialogResult.OK) { return; } ListOrdersAll = SupplyOrders.GetAll(); FillGridOrders(); FillGridOrderItem(); }
private void gridMain_CellDoubleClick(object sender,ODGridClickEventArgs e) { InputBox ipb=new InputBox("Actual OID"); ipb.textResult.Text=_listOIDInternal[e.Row].IDRoot; ipb.ShowDialog(); if(ipb.DialogResult!=DialogResult.OK) { return; } if(e.Row==0) { _rootOIDString=ipb.textResult.Text; } _listOIDInternal[e.Row].IDRoot=ipb.textResult.Text; FillGrid(); }
private void gridMain_CellClick(object sender,ODGridClickEventArgs e) { if(e.Col<2) { return;//name and group name columns. } for(int i=0;i<_listCdsPermissions.Count;i++) { if(_listCdsPermissions[i].CDSPermissionNum!=(long)gridMain.Rows[e.Row].Tag) { continue; } switch(e.Col){ case 0: case 1: //should never happen. break; case 2: _listCdsPermissions[i].ShowCDS=!_listCdsPermissions[i].ShowCDS; break; case 3: _listCdsPermissions[i].SetupCDS=!_listCdsPermissions[i].SetupCDS; break; case 4: _listCdsPermissions[i].ShowInfobutton=!_listCdsPermissions[i].ShowInfobutton; break; case 5: _listCdsPermissions[i].EditBibliography=!_listCdsPermissions[i].EditBibliography; break; case 6: _listCdsPermissions[i].ProblemCDS=!_listCdsPermissions[i].ProblemCDS; break; case 7: _listCdsPermissions[i].MedicationCDS=!_listCdsPermissions[i].MedicationCDS; break; case 8: _listCdsPermissions[i].AllergyCDS=!_listCdsPermissions[i].AllergyCDS; break; case 9: _listCdsPermissions[i].DemographicCDS=!_listCdsPermissions[i].DemographicCDS; break; case 10: _listCdsPermissions[i].LabTestCDS=!_listCdsPermissions[i].LabTestCDS; break; case 11: _listCdsPermissions[i].VitalCDS=!_listCdsPermissions[i].VitalCDS; break; default: //should never happen. break; } break; } FillGrid(); }
private void gridMain_CellDoubleClick(object sender,ODGridClickEventArgs e) { int index=gridMain.GetSelectedIndex(); if(index==-1) { MessageBox.Show("Please select a data element first."); return; } FormEhrPatListElementEdit FormPLEE=new FormEhrPatListElementEdit(); FormPLEE.Element=ElementList[index]; FormPLEE.ShowDialog(); if(FormPLEE.DialogResult==DialogResult.Cancel && FormPLEE.Delete) { ElementList.Remove(ElementList[index]); } FillGrid(); }
private void gridMain_CellDoubleClick(object sender,ODGridClickEventArgs e) { if(IsSelectionMode) { EmailAddressNum=EmailAddresses.Listt[gridMain.GetSelectedIndex()].EmailAddressNum; DialogResult=DialogResult.OK; } else { FormEmailAddressEdit FormEAE=new FormEmailAddressEdit(); FormEAE.EmailAddressCur=EmailAddresses.Listt[e.Row]; FormEAE.ShowDialog(); if(FormEAE.DialogResult==DialogResult.OK) { FillGrid(); } } }