private void FillNotes() { NoteList = ProcCodeNotes.GetList(ProcCode.CodeNum); gridNotes.BeginUpdate(); gridNotes.Columns.Clear(); ODGridColumn col = new ODGridColumn(Lan.g("TableProcedureNotes", "Prov"), 80); gridNotes.Columns.Add(col); col = new ODGridColumn(Lan.g("TableProcedureNotes", "Time"), 150); gridNotes.Columns.Add(col); col = new ODGridColumn(Lan.g("TableProcedureNotes", "Note"), 400); gridNotes.Columns.Add(col); gridNotes.Rows.Clear(); ODGridRow row; for (int i = 0; i < NoteList.Count; i++) { row = new ODGridRow(); row.Cells.Add(Providers.GetAbbr(NoteList[i].ProvNum)); row.Cells.Add(NoteList[i].ProcTime); row.Cells.Add(NoteList[i].Note); gridNotes.Rows.Add(row); } gridNotes.EndUpdate(); }
private void FillGrid() { RxDefList = RxDefs.Refresh(); gridMain.BeginUpdate(); gridMain.Columns.Clear(); ODGridColumn col = new ODGridColumn(Lan.g("TableRxSetup", "Drug"), 140); gridMain.Columns.Add(col); col = new ODGridColumn(Lan.g("TableRxSetup", "Sig"), 320); gridMain.Columns.Add(col); col = new ODGridColumn(Lan.g("TableRxSetup", "Disp"), 70); gridMain.Columns.Add(col); col = new ODGridColumn(Lan.g("TableRxSetup", "Refills"), 70); gridMain.Columns.Add(col); col = new ODGridColumn(Lan.g("TableRxSetup", "Notes"), 300); gridMain.Columns.Add(col); gridMain.Rows.Clear(); ODGridRow row; for (int i = 0; i < RxDefList.Length; i++) { row = new ODGridRow(); row.Cells.Add(RxDefList[i].Drug); row.Cells.Add(RxDefList[i].Sig); row.Cells.Add(RxDefList[i].Disp); row.Cells.Add(RxDefList[i].Refills); row.Cells.Add(RxDefList[i].Notes); gridMain.Rows.Add(row); } gridMain.EndUpdate(); }
private void FillGrid() { if (!IsHL7DefInternal && !HL7DefSegCur.IsNew) { HL7DefSegCur.hl7DefFields = HL7DefFields.GetFromDb(HL7DefSegCur.HL7DefSegmentNum); } gridMain.BeginUpdate(); gridMain.Columns.Clear(); ODGridColumn col = new ODGridColumn(Lan.g(this, "Field Name"), 140); gridMain.Columns.Add(col); col = new ODGridColumn(Lan.g(this, "Fixed Text"), 240); gridMain.Columns.Add(col); col = new ODGridColumn(Lan.g(this, "Type"), 40); gridMain.Columns.Add(col); col = new ODGridColumn(Lan.g(this, "Order"), 40, HorizontalAlignment.Center); gridMain.Columns.Add(col); col = new ODGridColumn(Lan.g(this, "Table ID"), 75); gridMain.Columns.Add(col); gridMain.Rows.Clear(); if (HL7DefSegCur != null && HL7DefSegCur.hl7DefFields != null) { for (int i = 0; i < HL7DefSegCur.hl7DefFields.Count; i++) { ODGridRow row = new ODGridRow(); row.Cells.Add(HL7DefSegCur.hl7DefFields[i].FieldName); row.Cells.Add(HL7DefSegCur.hl7DefFields[i].FixedText); row.Cells.Add(Lan.g("enumDataTypeHL7", HL7DefSegCur.hl7DefFields[i].DataType.ToString())); row.Cells.Add(HL7DefSegCur.hl7DefFields[i].OrdinalPos.ToString()); row.Cells.Add(HL7DefSegCur.hl7DefFields[i].TableId); gridMain.Rows.Add(row); } } gridMain.EndUpdate(); }
private void FillGrid() { Employees.RefreshCache(); gridMain.BeginUpdate(); gridMain.Columns.Clear(); ODGridColumn col = new ODGridColumn(Lan.g("FormEmployeeSelect", "FName"), 75); gridMain.Columns.Add(col); col = new ODGridColumn(Lan.g("FormEmployeeSelect", "LName"), 75); gridMain.Columns.Add(col); col = new ODGridColumn(Lan.g("FormEmployeeSelect", "MiddleI"), 50); gridMain.Columns.Add(col); col = new ODGridColumn(Lan.g("FormEmployeeSelect", "Hidden"), 50, HorizontalAlignment.Center); gridMain.Columns.Add(col); gridMain.Rows.Clear(); ODGridRow row; for (int i = 0; i < Employees.ListLong.Length; i++) { row = new ODGridRow(); row.Cells.Add(Employees.ListLong[i].FName); row.Cells.Add(Employees.ListLong[i].LName); row.Cells.Add(Employees.ListLong[i].MiddleI); if (Employees.ListLong[i].IsHidden) { row.Cells.Add("X"); } else { row.Cells.Add(""); } gridMain.Rows.Add(row); } gridMain.EndUpdate(); }
private void FillGrid() { gridMain.BeginUpdate(); gridMain.Columns.Clear(); ODGridColumn col; col = new ODGridColumn("Reminder Criterion", 135); gridMain.Columns.Add(col); col = new ODGridColumn("Message", 200); gridMain.Columns.Add(col); listReminders = ReminderRules.GetRemindersForPatient(PatCur); gridMain.Rows.Clear(); ODGridRow row; for (int i = 0; i < listReminders.Count; i++) { row = new ODGridRow(); switch (listReminders[i].ReminderCriterion) { case EhrCriterion.Problem: DiseaseDef def = DiseaseDefs.GetItem(listReminders[i].CriterionFK); row.Cells.Add("Problem =" + def.ICD9Code + " " + def.DiseaseName); break; case EhrCriterion.Medication: Medication tempMed = Medications.GetMedication(listReminders[i].CriterionFK); if (tempMed.MedicationNum == tempMed.GenericNum) //handle generic medication names. { row.Cells.Add("Medication = " + tempMed.MedName); } else { row.Cells.Add("Medication = " + tempMed.MedName + " (" + Medications.GetGenericName(tempMed.GenericNum) + ")"); } break; case EhrCriterion.Allergy: row.Cells.Add("Allergy = " + AllergyDefs.GetOne(listReminders[i].CriterionFK).Description); break; case EhrCriterion.Age: row.Cells.Add("Age " + listReminders[i].CriterionValue); break; case EhrCriterion.Gender: row.Cells.Add("Gender is " + listReminders[i].CriterionValue); break; case EhrCriterion.LabResult: row.Cells.Add("LabResult " + listReminders[i].CriterionValue); break; //case EhrCriterion.ICD9: // row.Cells.Add("ICD9 "+ICD9s.GetDescription(listReminders[i].CriterionFK)); // break; } row.Cells.Add(listReminders[i].Message); gridMain.Rows.Add(row); } gridMain.EndUpdate(); }
private void FillStudents() { if (comboClass.SelectedIndex == -1) { return; } int schoolClass = SchoolClasses.List[comboClass.SelectedIndex].SchoolClassNum; //int schoolCourse=SchoolCourses.List[comboCourse.SelectedIndex].SchoolCourseNum; StudentList = ReqStudents.GetStudents(schoolClass); gridStudents.BeginUpdate(); gridStudents.Columns.Clear(); ODGridColumn col = new ODGridColumn("", 100); gridStudents.Columns.Add(col); gridStudents.Rows.Clear(); ODGridRow row; for (int i = 0; i < StudentList.Count; i++) { row = new ODGridRow(); row.Cells.Add(StudentList[i].LName + ", " + StudentList[i].FName); gridStudents.Rows.Add(row); } gridStudents.EndUpdate(); }
private void FillGrid() { _listGradingScaleItems = GradingScaleItems.Refresh(_gradingScaleCur.GradingScaleNum); gridMain.BeginUpdate(); gridMain.Columns.Clear(); ODGridColumn col = new ODGridColumn(Lan.g("FormGradingScaleEdit", "Shown"), 60); gridMain.Columns.Add(col); col = new ODGridColumn(Lan.g("FormGradingScaleEdit", "Number"), 60); gridMain.Columns.Add(col); col = new ODGridColumn(Lan.g("FormGradingScaleEdit", "Description"), 160); gridMain.Columns.Add(col); gridMain.Rows.Clear(); ODGridRow row; for (int i = 0; i < _listGradingScaleItems.Count; i++) { row = new ODGridRow(); row.Cells.Add(_listGradingScaleItems[i].GradeShowing); row.Cells.Add(_listGradingScaleItems[i].GradeNumber.ToString()); row.Cells.Add(_listGradingScaleItems[i].Description); gridMain.Rows.Add(row); } gridMain.EndUpdate(); }
private void FillGrid() { table = ReqStudents.RefreshOneStudent(ProvNum); gridMain.BeginUpdate(); gridMain.Columns.Clear(); ODGridColumn col = new ODGridColumn(Lan.g("TableReqStudentOne", "Course"), 100); gridMain.Columns.Add(col); col = new ODGridColumn(Lan.g("TableReqStudentOne", "Requirement"), 200); gridMain.Columns.Add(col); col = new ODGridColumn(Lan.g("TableReqStudentOne", "Done"), 40); gridMain.Columns.Add(col); col = new ODGridColumn(Lan.g("TableReqStudentOne", "Patient"), 140); gridMain.Columns.Add(col); col = new ODGridColumn(Lan.g("TableReqStudentOne", "Appointment"), 190); gridMain.Columns.Add(col); gridMain.Rows.Clear(); ODGridRow row; for (int i = 0; i < table.Rows.Count; i++) { row = new ODGridRow(); row.Cells.Add(table.Rows[i]["course"].ToString()); row.Cells.Add(table.Rows[i]["requirement"].ToString()); row.Cells.Add(table.Rows[i]["done"].ToString()); row.Cells.Add(table.Rows[i]["patient"].ToString()); row.Cells.Add(table.Rows[i]["appointment"].ToString()); gridMain.Rows.Add(row); } gridMain.EndUpdate(); }
private void fillGrid() { gridMain.BeginUpdate(); gridMain.Columns.Clear(); ODGridColumn col; col = new ODGridColumn("Loinc Code", 80); //,HorizontalAlignment.Center); gridMain.Columns.Add(col); col = new ODGridColumn("Status", 80); //,HorizontalAlignment.Center); gridMain.Columns.Add(col); col = new ODGridColumn("Long Name", 500); //,HorizontalAlignment.Center); gridMain.Columns.Add(col); col = new ODGridColumn("UCUM Units", 100); //,HorizontalAlignment.Center); gridMain.Columns.Add(col); col = new ODGridColumn("Order or Observation", 100); //,HorizontalAlignment.Center); gridMain.Columns.Add(col); gridMain.Rows.Clear(); ODGridRow row; listLoincSearch = Loincs.GetBySearchString(textCode.Text); for (int i = 0; i < listLoincSearch.Count; i++) { row = new ODGridRow(); row.Cells.Add(listLoincSearch[i].LoincCode); row.Cells.Add(listLoincSearch[i].StatusOfCode); row.Cells.Add(listLoincSearch[i].NameLongCommon); row.Cells.Add(listLoincSearch[i].UnitsUCUM); row.Cells.Add(listLoincSearch[i].OrderObs); gridMain.Rows.Add(row); } gridMain.EndUpdate(); }
private void FillGridScreenPat() { ListScreenPats = ScreenPats.GetForScreenGroup(ScreenGroupCur.ScreenGroupNum); ListPats = Patients.GetPatsForScreenGroup(ScreenGroupCur.ScreenGroupNum); gridMain.BeginUpdate(); gridMain.Columns.Clear(); ODGridColumn col; col = new ODGridColumn(Lan.g(this, "PatNum"), 80); gridMain.Columns.Add(col); col = new ODGridColumn(Lan.g(this, "Name"), 300); gridMain.Columns.Add(col); //todo: birthdate col = new ODGridColumn(Lan.g(this, "Age"), 80); gridMain.Columns.Add(col); col = new ODGridColumn(Lan.g(this, "Race"), 80); gridMain.Columns.Add(col); col = new ODGridColumn(Lan.g(this, "Gender"), 80); gridMain.Columns.Add(col); gridMain.Rows.Clear(); ODGridRow row; for (int i = 0; i < ListPats.Count; i++) { row = new ODGridRow(); row.Cells.Add(ListPats[i].PatNum.ToString()); row.Cells.Add(ListPats[i].GetNameLF()); row.Cells.Add(ListPats[i].Age.ToString()); row.Cells.Add(ListPats[i].Race.ToString()); row.Cells.Add(ListPats[i].Gender.ToString()); gridMain.Rows.Add(row); } gridMain.EndUpdate(); }
private void FillGrid() { gridMain.BeginUpdate(); gridMain.Columns.Clear(); ODGridColumn col = new ODGridColumn(Lan.g(this, "Last Name"), 110); gridMain.Columns.Add(col); col = new ODGridColumn(Lan.g(this, "First Name"), 110); gridMain.Columns.Add(col); col = new ODGridColumn(Lan.g(this, "Birthdate"), 110); gridMain.Columns.Add(col); listPats = Patients.GetSimilarList(LnameEntered, FnameEntered, BdateEntered); gridMain.Rows.Clear(); ODGridRow row; for (int i = 0; i < listPats.Count; i++) { row = new ODGridRow(); row.Cells.Add(listPats[i].LName); row.Cells.Add(listPats[i].FName); row.Cells.Add(listPats[i].Birthdate.ToShortDateString()); gridMain.Rows.Add(row); } gridMain.EndUpdate(); }
private void FillGridDates() { gridHist.BeginUpdate(); gridHist.Columns.Clear(); ODGridColumn col; col = new ODGridColumn(Lan.g("TableOrthoAudit", "Date"), 70); gridHist.Columns.Add(col); col = new ODGridColumn(Lan.g("TableOrthoAudit", "Entries"), 50, HorizontalAlignment.Center); gridHist.Columns.Add(col); gridHist.Rows.Clear(); ODGridRow row; foreach (DateTime dt in DictDateOrthoLogs.Keys) //must use foreach to enumerate through keys in the dictionary { row = new ODGridRow(); row.Cells.Add(dt.ToShortDateString()); row.Cells.Add(DictDateOrthoLogs[dt].Count.ToString()); row.Tag = dt; gridHist.Rows.Add(row); } gridHist.EndUpdate(); gridHist.ScrollToEnd(); gridHist.SetSelected(true); }
private void FillGrid() { gridMain.BeginUpdate(); gridMain.Columns.Clear(); ODGridColumn col; col = new ODGridColumn("CPT Code", 100); gridMain.Columns.Add(col); //col=new ODGridColumn("Deprecated",75,HorizontalAlignment.Center); //gridMain.Columns.Add(col); col = new ODGridColumn("Description", 500); gridMain.Columns.Add(col); //col=new ODGridColumn("Used By CQM's",75); //gridMain.Columns.Add(col); gridMain.Rows.Clear(); ODGridRow row; listCpts = Cpts.GetBySearchText(textCode.Text); //List<ODGridRow> listAll=new List<ODGridRow>();//for sorting grid after it has been filled. for (int i = 0; i < listCpts.Count; i++) { row = new ODGridRow(); row.Cells.Add(listCpts[i].CptCode); row.Cells.Add(listCpts[i].Description); //row.Cells.Add(EhrCodes.GetMeasureIdsForCode(listCpts[i].SnomedCode,"SNOMEDCT")); row.Tag = listCpts[i];; //listAll.Add(row); gridMain.Rows.Add(row); } //listAll.Sort(SortMeasuresMet); //for(int i=0;i<listAll.Count;i++) { // gridMain.Rows.Add(listAll[i]); //} gridMain.EndUpdate(); }
private void FillElectIDs(long electIDSelect) { ElectIDs.RefreshCache(); gridElectIDs.BeginUpdate(); gridElectIDs.Columns.Clear(); ODGridColumn col = new ODGridColumn(Lan.g("TableApptProcs", "Carrier"), 320); gridElectIDs.Columns.Add(col); col = new ODGridColumn(Lan.g("TableApptProcs", "Payer ID"), 80); gridElectIDs.Columns.Add(col); col = new ODGridColumn(Lan.g("TableApptProcs", "Is Medicaid"), 70, HorizontalAlignment.Center); gridElectIDs.Columns.Add(col); col = new ODGridColumn(Lan.g("TableApptProcs", "Comments"), 390); gridElectIDs.Columns.Add(col); gridElectIDs.Rows.Clear(); ODGridRow row; int selectedIndex = -1; for (int i = 0; i < ElectIDs.List.Length; i++) { row = new ODGridRow(); row.Cells.Add(ElectIDs.List[i].CarrierName); row.Cells.Add(ElectIDs.List[i].PayorID); row.Cells.Add(ElectIDs.List[i].IsMedicaid?"X":""); row.Cells.Add(ElectIDs.List[i].Comments); gridElectIDs.Rows.Add(row); if (ElectIDs.List[i].ElectIDNum == electIDSelect) { selectedIndex = i; } } gridElectIDs.EndUpdate(); gridElectIDs.SetSelected(selectedIndex, true); }
private void FillGridQ() { gridQ.BeginUpdate(); gridQ.Columns.Clear(); ODGridColumn col = new ODGridColumn(Lan.g(this, "Practice Title"), 120); gridQ.Columns.Add(col); col = new ODGridColumn(Lan.g(this, "Year"), 40); gridQ.Columns.Add(col); col = new ODGridColumn(Lan.g(this, "Quarter"), 50); gridQ.Columns.Add(col); col = new ODGridColumn(Lan.g(this, "Key"), 100); gridQ.Columns.Add(col); col = new ODGridColumn(Lan.g(this, "Notes"), 100); gridQ.Columns.Add(col); listKeysQuart = EhrQuarterlyKeys.Refresh(Guarantor); gridQ.Rows.Clear(); ODGridRow row; for (int i = 0; i < listKeysQuart.Count; i++) { row = new ODGridRow(); row.Cells.Add(listKeysQuart[i].PracticeName); row.Cells.Add(listKeysQuart[i].YearValue.ToString()); row.Cells.Add(listKeysQuart[i].QuarterValue.ToString()); row.Cells.Add(listKeysQuart[i].KeyValue); row.Cells.Add(listKeysQuart[i].Notes); gridQ.Rows.Add(row); } gridQ.EndUpdate(); }
private void FillGrid() { SecurityLog[] logList = SecurityLogs.Refresh(PatNum, PermTypes, FKey); grid.BeginUpdate(); grid.Columns.Clear(); ODGridColumn col; col = new ODGridColumn(Lan.g("TableAudit", "Date Time"), 120); grid.Columns.Add(col); col = new ODGridColumn(Lan.g("TableAudit", "User"), 70); grid.Columns.Add(col); col = new ODGridColumn(Lan.g("TableAudit", "Permission"), 110); grid.Columns.Add(col); col = new ODGridColumn(Lan.g("TableAudit", "Log Text"), 569); grid.Columns.Add(col); grid.Rows.Clear(); ODGridRow row; for (int i = 0; i < logList.Length; i++) { row = new ODGridRow(); row.Cells.Add(logList[i].LogDateTime.ToShortDateString() + " " + logList[i].LogDateTime.ToShortTimeString()); row.Cells.Add(Userods.GetUser(logList[i].UserNum).UserName); row.Cells.Add(logList[i].PermType.ToString()); row.Cells.Add(logList[i].LogText); grid.Rows.Add(row); } grid.EndUpdate(); grid.ScrollToEnd(); }
private void FillGrid() { gridMain.BeginUpdate(); gridMain.Columns.Clear(); ODGridColumn col = new ODGridColumn(Lan.g("TableProviders", "Abbrev"), 90); gridMain.Columns.Add(col); col = new ODGridColumn(Lan.g("TableProviders", "Last Name"), 90); gridMain.Columns.Add(col); col = new ODGridColumn(Lan.g("TableProviders", "First Name"), 90); gridMain.Columns.Add(col); gridMain.Rows.Clear(); ODGridRow row; for (int i = 0; i < ProviderC.ListShort.Count; i++) { row = new ODGridRow(); row.Cells.Add(ProviderC.ListShort[i].Abbr); row.Cells.Add(ProviderC.ListShort[i].LName); row.Cells.Add(ProviderC.ListShort[i].FName); //wanted to do a background color here, but grid couldn't handle it. gridMain.Rows.Add(row); } gridMain.EndUpdate(); }
private void FillGrid() { gridMain.BeginUpdate(); gridMain.Columns.Clear(); ODGridColumn col = new ODGridColumn(Lan.g(this, "Date"), 100); gridMain.Columns.Add(col); col = new ODGridColumn(Lan.g(this, "Category"), 120); gridMain.Columns.Add(col); col = new ODGridColumn(Lan.g(this, "Description"), 300); gridMain.Columns.Add(col); gridMain.Rows.Clear(); ODGridRow row; Docs = Documents.GetAllWithPat(PatNum); for (int i = 0; i < Docs.Length; i++) { row = new ODGridRow(); row.Cells.Add(Docs[i].DateCreated.ToShortDateString()); row.Cells.Add(DefC.GetName(DefCat.ImageCats, Docs[i].DocCategory)); row.Cells.Add(Docs[i].Description); gridMain.Rows.Add(row); } gridMain.EndUpdate(); }
private void FillReqs() { int schoolCourse = 0; if (comboCourse.SelectedIndex != -1) { schoolCourse = SchoolCourses.List[comboCourse.SelectedIndex].SchoolCourseNum; } gridReqs.BeginUpdate(); gridReqs.Columns.Clear(); ODGridColumn col = new ODGridColumn("", 100); gridReqs.Columns.Add(col); gridReqs.Rows.Clear(); if (gridStudents.GetSelectedIndex() == -1) { gridReqs.EndUpdate(); return; } ReqTable = ReqStudents.GetForStudent(StudentList[gridStudents.GetSelectedIndex()].ProvNum, schoolCourse); ODGridRow row; for (int i = 0; i < ReqTable.Rows.Count; i++) { row = new ODGridRow(); row.Cells.Add(ReqTable.Rows[i]["Descript"].ToString()); gridReqs.Rows.Add(row); } gridReqs.EndUpdate(); }
private void FillGridOrders() { FilterListOrder(); gridOrders.BeginUpdate(); gridOrders.Columns.Clear(); ODGridColumn col = new ODGridColumn(Lan.g(this, "Date Placed"), 80); gridOrders.Columns.Add(col); col = new ODGridColumn(Lan.g(this, "Amount"), 70, HorizontalAlignment.Right); gridOrders.Columns.Add(col); col = new ODGridColumn(Lan.g(this, "Supplier"), 120); gridOrders.Columns.Add(col); col = new ODGridColumn(Lan.g(this, "Note"), 200); gridOrders.Columns.Add(col); gridOrders.Rows.Clear(); ODGridRow row; for (int i = 0; i < _listOrders.Count; i++) { row = new ODGridRow(); if (_listOrders[i].DatePlaced.Year > 2200) { row.Cells.Add(Lan.g(this, "pending")); } else { row.Cells.Add(_listOrders[i].DatePlaced.ToShortDateString()); } row.Cells.Add(_listOrders[i].AmountTotal.ToString("c")); row.Cells.Add(Suppliers.GetName(_listSuppliers, _listOrders[i].SupplierNum)); row.Cells.Add(_listOrders[i].Note); gridOrders.Rows.Add(row); } gridOrders.EndUpdate(); }
private void FillGrid() { gridMain.BeginUpdate(); gridMain.Columns.Clear(); ODGridColumn col = new ODGridColumn(Lan.g("FormTrophyNamePick", "FolderName"), 100); gridMain.Columns.Add(col); col = new ODGridColumn(Lan.g("FormTrophyNamePick", "Last Name"), 120); gridMain.Columns.Add(col); col = new ODGridColumn(Lan.g("FormTrophyNamePick", "First Name"), 120); gridMain.Columns.Add(col); col = new ODGridColumn(Lan.g("FormTrophyNamePick", "Birthdate"), 80); gridMain.Columns.Add(col); gridMain.Rows.Clear(); ODGridRow row; for (int i = 0; i < ListMatches.Count; i++) { row = new ODGridRow(); row.Cells.Add(ListMatches[i].FolderName); row.Cells.Add(ListMatches[i].LName); row.Cells.Add(ListMatches[i].FName); row.Cells.Add(ListMatches[i].BirthDate.ToShortDateString()); gridMain.Rows.Add(row); } gridMain.EndUpdate(); }
private void FormProvidersMultiPick_Load(object sender, EventArgs e) { gridMain.BeginUpdate(); gridMain.Columns.Clear(); ODGridColumn col = new ODGridColumn(Lan.g("TableProviders", "Abbrev"), 90); gridMain.Columns.Add(col); col = new ODGridColumn(Lan.g("TableProviders", "Last Name"), 90); gridMain.Columns.Add(col); col = new ODGridColumn(Lan.g("TableProviders", "First Name"), 90); gridMain.Columns.Add(col); gridMain.Rows.Clear(); ODGridRow row; _listProviders = Providers.GetDeepCopy(true); for (int i = 0; i < _listProviders.Count; i++) { row = new ODGridRow(); row.Cells.Add(_listProviders[i].Abbr); row.Cells.Add(_listProviders[i].LName); row.Cells.Add(_listProviders[i].FName); gridMain.Rows.Add(row); } gridMain.EndUpdate(); for (int i = 0; i < _listProviders.Count; i++) { if (SelectedProviders.Contains(_listProviders[i])) { gridMain.SetSelected(i, true); } } }
private void FillGrid(ODGrid grid, List <Cdcrec> listCdcRecs) { grid.BeginUpdate(); grid.Columns.Clear(); ODGridColumn col; col = new ODGridColumn(Lan.g(this, "CDCREC Code"), 100); grid.Columns.Add(col); col = new ODGridColumn(Lan.g(this, "Description"), 150); grid.Columns.Add(col); grid.Rows.Clear(); ODGridRow row; foreach (Cdcrec cdcrec in listCdcRecs) { row = new ODGridRow(); if (cdcrec.CdcrecCode.StartsWith("ASKU") || cdcrec.CdcrecCode == PatientRace.MULTI_RACE_CODE) { row.Cells.Add(""); } else { row.Cells.Add(cdcrec.CdcrecCode); } row.Cells.Add(cdcrec.Description); row.Tag = cdcrec; grid.Rows.Add(row); } grid.EndUpdate(); }
private void FillGrid() { ConnList = CentralConnections.Refresh(textSearch.Text); gridMain.BeginUpdate(); gridMain.Columns.Clear(); ODGridColumn col; col = new ODGridColumn("#", 40); gridMain.Columns.Add(col); col = new ODGridColumn("Database", 320); gridMain.Columns.Add(col); col = new ODGridColumn("Note", 300); gridMain.Columns.Add(col); gridMain.Rows.Clear(); ODGridRow row; for (int i = 0; i < ConnList.Count; i++) { row = new ODGridRow(); row.Cells.Add(ConnList[i].ItemOrder.ToString()); if (ConnList[i].DatabaseName == "") //uri { row.Cells.Add(ConnList[i].ServiceURI); } else { row.Cells.Add(ConnList[i].ServerName + ", " + ConnList[i].DatabaseName); } row.Cells.Add(ConnList[i].Note); gridMain.Rows.Add(row); } gridMain.EndUpdate(); }
private void FillGrid() { if (!IsHL7DefInternal && !HL7DefMesCur.IsNew) { HL7DefMesCur.hl7DefSegments = HL7DefSegments.GetDeepFromDb(HL7DefMesCur.HL7DefMessageNum); } gridMain.BeginUpdate(); gridMain.Columns.Clear(); ODGridColumn col = new ODGridColumn(Lan.g(this, "Seg"), 35); gridMain.Columns.Add(col); col = new ODGridColumn(Lan.g(this, "Order"), 40, HorizontalAlignment.Center); gridMain.Columns.Add(col); col = new ODGridColumn(Lan.g(this, "Can Repeat"), 73, HorizontalAlignment.Center); gridMain.Columns.Add(col); col = new ODGridColumn(Lan.g(this, "Is Optional"), 67, HorizontalAlignment.Center); gridMain.Columns.Add(col); col = new ODGridColumn(Lan.g(this, "Note"), 100); gridMain.Columns.Add(col); gridMain.Rows.Clear(); if (HL7DefMesCur != null && HL7DefMesCur.hl7DefSegments != null) { for (int i = 0; i < HL7DefMesCur.hl7DefSegments.Count; i++) { ODGridRow row = new ODGridRow(); row.Cells.Add(Lan.g("enumSegmentNameHL7", HL7DefMesCur.hl7DefSegments[i].SegmentName.ToString())); row.Cells.Add(HL7DefMesCur.hl7DefSegments[i].ItemOrder.ToString()); row.Cells.Add(HL7DefMesCur.hl7DefSegments[i].CanRepeat?"X":""); row.Cells.Add(HL7DefMesCur.hl7DefSegments[i].IsOptional?"X":""); row.Cells.Add(HL7DefMesCur.hl7DefSegments[i].Note); gridMain.Rows.Add(row); } } gridMain.EndUpdate(); }
private void FillGrid() { _listFeeScheds = _listFeeScheds.OrderBy(x => x.ItemOrder).ToList(); gridMain.BeginUpdate(); gridMain.Columns.Clear(); ODGridColumn col = new ODGridColumn(Lan.g("TableFeeScheds", "Description"), 145); gridMain.Columns.Add(col); col = new ODGridColumn(Lan.g("TableFeeScheds", "Type"), 70); gridMain.Columns.Add(col); col = new ODGridColumn(Lan.g("TableFeeScheds", "Hidden"), 60, HorizontalAlignment.Center); gridMain.Columns.Add(col); gridMain.Rows.Clear(); ODGridRow row; IsDone = true; if (_listFeeScheds.Where(x => x.Description.ToLower() != "default").ToList().Count == 0) { IsDone = false; } foreach (FeeSched feeSched in _listFeeScheds) { row = new ODGridRow(); row.Tag = feeSched; row.Cells.Add(feeSched.Description); row.Cells.Add(feeSched.FeeSchedType.ToString()); row.Cells.Add(feeSched.IsHidden ? "X" : ""); gridMain.Rows.Add(row); } gridMain.EndUpdate(); }
private void FillGrid() { //Get all conn group attaches because we will be using all of them in order to show counts. List <ConnGroupAttach> listConnGroupAttaches = ConnGroupAttaches.GetAll(); gridMain.BeginUpdate(); gridMain.Columns.Clear(); ODGridColumn col = new ODGridColumn(Lans.g(this, "Group Name"), 280); gridMain.Columns.Add(col); col = new ODGridColumn(Lans.g(this, "Conns"), 0); gridMain.Columns.Add(col); gridMain.Rows.Clear(); ODGridRow row; foreach (ConnectionGroup connGroup in _listCentralConnGroups) { row = new ODGridRow(); row.Cells.Add(connGroup.Description); row.Cells.Add(listConnGroupAttaches.FindAll(x => x.ConnectionGroupNum == connGroup.ConnectionGroupNum).Count.ToString()); row.Tag = connGroup; //Not really used currently, but we may want to add filtering later. gridMain.Rows.Add(row); } gridMain.EndUpdate(); }
private void FillGrid() { EmailAddresses.RefreshCache(); _listEmailAddresses = EmailAddresses.GetDeepCopy(); gridMain.BeginUpdate(); gridMain.Columns.Clear(); ODGridColumn col; col = new ODGridColumn(Lan.g(this, "User Name"), 240); gridMain.Columns.Add(col); col = new ODGridColumn(Lan.g(this, "Sender Address"), 270); gridMain.Columns.Add(col); col = new ODGridColumn(Lan.g(this, "Default"), 50, HorizontalAlignment.Center); gridMain.Columns.Add(col); col = new ODGridColumn(Lan.g(this, "Notify"), 0, HorizontalAlignment.Center); gridMain.Columns.Add(col); gridMain.Rows.Clear(); ODGridRow row; for (int i = 0; i < _listEmailAddresses.Count; i++) { row = new ODGridRow(); row.Cells.Add(_listEmailAddresses[i].EmailUsername); row.Cells.Add(_listEmailAddresses[i].SenderAddress); row.Cells.Add((_listEmailAddresses[i].EmailAddressNum == PrefC.GetLong(PrefName.EmailDefaultAddressNum))?"X":""); row.Cells.Add((_listEmailAddresses[i].EmailAddressNum == PrefC.GetLong(PrefName.EmailNotifyAddressNum))?"X":""); gridMain.Rows.Add(row); } gridMain.EndUpdate(); }
private void FillMain() { gridMain.BeginUpdate(); gridMain.Columns.Clear(); ODGridColumn col; col = new ODGridColumn(Lan.g(this, "Field Name"), 150); gridMain.Columns.Add(col); col = new ODGridColumn(Lan.g(this, "Conditions"), 80, HorizontalAlignment.Center); gridMain.Columns.Add(col); gridMain.Rows.Clear(); ODGridRow row; _listReqFields = RequiredFields.GetDeepCopy(); for (int i = 0; i < _listReqFields.Count; i++) { row = new ODGridRow(); row.Cells.Add(_listReqFields[i].FieldName.ToString()); int conditionsCount = _listReqFields[i].ListRequiredFieldConditions.Count; if (conditionsCount > 0) { row.Cells.Add("X"); } else { row.Cells.Add(""); } gridMain.Rows.Add(row); } gridMain.EndUpdate(); }
private void FillFees() { //This line will be added later for speed: //DataTable feeList=Fees.GetListForCode(ProcCode.Code); gridFees.BeginUpdate(); gridFees.Columns.Clear(); ODGridColumn col = new ODGridColumn(Lan.g("TableProcFee", "Sched"), 120); gridFees.Columns.Add(col); col = new ODGridColumn(Lan.g("TableProcFee", "Amount"), 60, HorizontalAlignment.Right); gridFees.Columns.Add(col); gridFees.Rows.Clear(); ODGridRow row; Fee fee; for (int i = 0; i < DefB.Short[(int)DefCat.FeeSchedNames].Length; i++) { fee = Fees.GetFeeByOrder(ProcCode.CodeNum, i); row = new ODGridRow(); row.Cells.Add(DefB.Short[(int)DefCat.FeeSchedNames][i].ItemName); if (fee == null) { row.Cells.Add(""); } else { row.Cells.Add(fee.Amount.ToString("n")); } gridFees.Rows.Add(row); } gridFees.EndUpdate(); }