当前位置: 首页>>代码示例>>C#>>正文


C# UI.ODGridColumn类代码示例

本文整理汇总了C#中OpenDental.UI.ODGridColumn的典型用法代码示例。如果您正苦于以下问题:C# ODGridColumn类的具体用法?C# ODGridColumn怎么用?C# ODGridColumn使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


ODGridColumn类属于OpenDental.UI命名空间,在下文中一共展示了ODGridColumn类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: FillGrid

 private void FillGrid()
 {
     PopupList=Popups.GetForFamily(PatCur);
     gridMain.BeginUpdate();
     gridMain.Columns.Clear();
     ODGridColumn col=new ODGridColumn(Lan.g("TablePopupsForFamily","Patient"),120);
     gridMain.Columns.Add(col);
     col=new ODGridColumn(Lan.g("TablePopupsForFamily","Level"),80);
     gridMain.Columns.Add(col);
     col=new ODGridColumn(Lan.g("TablePopupsForFamily","Disabled"),60,HorizontalAlignment.Center);
     gridMain.Columns.Add(col);
     col=new ODGridColumn(Lan.g("TablePopupsForFamily","Popup Message"),120);
     gridMain.Columns.Add(col);
     gridMain.Rows.Clear();
     ODGridRow row;
     for(int i=0;i<PopupList.Count;i++) {
         row=new ODGridRow();
         row.Cells.Add(Patients.GetPat(PopupList[i].PatNum).GetNameLF());
         row.Cells.Add(Lan.g("enumEnumPopupLevel",PopupList[i].PopupLevel.ToString()));
         row.Cells.Add(PopupList[i].IsDisabled?"X":"");
         row.Cells.Add(PopupList[i].Description);
         gridMain.Rows.Add(row);
     }
     gridMain.EndUpdate();
 }
开发者ID:nampn,项目名称:ODental,代码行数:25,代码来源:FormPopupsForFam.cs

示例2: FillGrid

		private void FillGrid() {
			gridMain.BeginUpdate();
			gridMain.Columns.Clear();
			ODGridColumn col=new ODGridColumn("DateTime",140);
			gridMain.Columns.Add(col);
			col = new ODGridColumn("Type",600);
			gridMain.Columns.Add(col);
			listHistory=EhrMeasureEvents.RefreshByType(PatCur.PatNum,EhrMeasureEventType.ElectronicCopyRequested,EhrMeasureEventType.ElectronicCopyProvidedToPt);
			gridMain.Rows.Clear();
			ODGridRow row;
			for(int i=0;i<listHistory.Count;i++) {
				row=new ODGridRow();
				row.Cells.Add(listHistory[i].DateTEvent.ToString());
				switch(listHistory[i].EventType) {
					case EhrMeasureEventType.ElectronicCopyRequested:
						row.Cells.Add("Requested by patient");
						break;
					case EhrMeasureEventType.ElectronicCopyProvidedToPt:
						row.Cells.Add("Provided to patient");
						break;
				}
				gridMain.Rows.Add(row);
			}
			gridMain.EndUpdate();
		}
开发者ID:romeroyonatan,项目名称:opendental,代码行数:25,代码来源:FormEhrElectronicCopy.cs

示例3: FillGridVaccine

		private void FillGridVaccine() {
			gridVaccine.BeginUpdate();
			gridVaccine.Columns.Clear();
			ODGridColumn col=new ODGridColumn("Date",90);
			gridVaccine.Columns.Add(col);
			col=new ODGridColumn("Vaccine",100);
			gridVaccine.Columns.Add(col);
			VaccineList=VaccinePats.Refresh(PatCur.PatNum);
			gridVaccine.Rows.Clear();
			ODGridRow row;
			for(int i=0;i<VaccineList.Count;i++) {
				row=new ODGridRow();
				if(VaccineList[i].DateTimeStart.Year<1880){
					row.Cells.Add("");
				}
				else{
					row.Cells.Add(VaccineList[i].DateTimeStart.ToShortDateString());
				}
				string str="";
				if(VaccineList[i].VaccineDefNum==0) {
					str="Not administered: "+VaccineList[i].Note;
				}
				else { 				
					str=VaccineDefs.GetOne(VaccineList[i].VaccineDefNum).VaccineName;
				}
				row.Cells.Add(str);
				gridVaccine.Rows.Add(row);
			}
			gridVaccine.EndUpdate();
		}
开发者ID:romeroyonatan,项目名称:opendental,代码行数:30,代码来源:FormEhrVaccines.cs

示例4: FillGrid

		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();
		}
开发者ID:mnisl,项目名称:OD,代码行数:30,代码来源:FormHL7DefSegmentEdit.cs

示例5: FormProvidersMultiPick_Load

		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;
			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);
				gridMain.Rows.Add(row);
			}
			gridMain.EndUpdate();
			for(int i=0;i<ProviderC.ListShort.Count;i++) {
				if(SelectedProviders.Contains(ProviderC.ListShort[i])) {
					gridMain.SetSelected(i,true);
				}
			}
		}
开发者ID:mnisl,项目名称:OD,代码行数:25,代码来源:FormProviderMultiPick.cs

示例6: FillGrid

		private void FillGrid() {
			if(_rootOIDString=="") {
				labelRetrieveStatus.ForeColor=System.Drawing.Color.Red;
				labelRetrieveStatus.Text="There is no OID root stored.  It is recommended that you press the 'Retrieve OIDs' button.";
			}
			gridMain.BeginUpdate();
			gridMain.Columns.Clear();
			ODGridColumn col;
			col=new ODGridColumn("Type",100);
			gridMain.Columns.Add(col);
			col=new ODGridColumn("Recommended Value",220);
			gridMain.Columns.Add(col);
			col=new ODGridColumn("Actual Value",220);
			gridMain.Columns.Add(col);
			gridMain.Rows.Clear();
			ODGridRow row;
			for(int i=0;i<_listOIDInternal.Count;i++) {
				row=new ODGridRow();
				row.Cells.Add(_listOIDInternal[i].IDType.ToString());
				if(_listOIDInternal[i].IDType==IdentifierType.Root) {
					row.Cells.Add("Press 'Retrieve OIDs' or see manual");
				}
				else {
					//recommended value is root+.1 through root+.4 (will grow as the enum is expanded)
					row.Cells.Add(_rootOIDString+"."+i.ToString());//adds the .1, .2, .3, and .4 (etc...) to the root
				}
				row.Cells.Add(_listOIDInternal[i].IDRoot);
				gridMain.Rows.Add(row);
			}
			gridMain.EndUpdate();
		}
开发者ID:mnisl,项目名称:OD,代码行数:31,代码来源:FormOIDRegistryInternal.cs

示例7: FillGrid

		/// <summary></summary>
		private void FillGrid() {
			gridMain.BeginUpdate();
			gridMain.Columns.Clear();
			ODGridColumn col=new ODGridColumn(Lan.g(this,"Image Name"),70);
			gridMain.Columns.Add(col);
			gridMain.Rows.Clear();
			string[] fileNames=System.IO.Directory.GetFiles(WikiPages.GetWikiPath());//All files from the wiki file path, including images and other files.
			ImageNamesList=new List<string>();
			for(int i=0;i<fileNames.Length;i++) {
				//If the user has entered a search keyword, then only show file names which contain the keyword.
				if(textSearch.Text!="" && !Path.GetFileName(fileNames[i]).ToLower().Contains(textSearch.Text.ToLower())) {
					continue;
				}
				//Only add image files to the ImageNamesList, not other files such at text files.
				if(ImageHelper.HasImageExtension(fileNames[i])) {
					ImageNamesList.Add(fileNames[i]);
				}
			}
			for(int i=0;i<ImageNamesList.Count;i++) {
				ODGridRow row=new ODGridRow();
				row.Cells.Add(Path.GetFileName(ImageNamesList[i]));
				gridMain.Rows.Add(row);
			}
			gridMain.EndUpdate();
			labelImageSize.Text=Lan.g(this,"Image Size")+":";
			picturePreview.Image=null;
			picturePreview.Invalidate();
		}
开发者ID:romeroyonatan,项目名称:opendental,代码行数:29,代码来源:FormWikiImages.cs

示例8: FillGrid

		/// <summary></summary>
		private void FillGrid() {
			List<WikiListHeaderWidth> colHeaderWidths = WikiListHeaderWidths.GetForList(WikiListCurName);
			gridMain.BeginUpdate();
			gridMain.Columns.Clear();
			ODGridColumn col;
			for(int c=0;c<_table.Columns.Count;c++){
				int colWidth = 100;//100 = default value in case something is malformed in the database.
				foreach(WikiListHeaderWidth colHead in colHeaderWidths) {
					if(colHead.ColName==_table.Columns[c].ColumnName) {
						colWidth=colHead.ColWidth;
						break;
					}
				}
				col=new ODGridColumn(_table.Columns[c].ColumnName,colWidth,false);
				gridMain.Columns.Add(col);
			}
			gridMain.Rows.Clear();
			ODGridRow row;
			for(int i=0;i<_table.Rows.Count;i++){
				row=new ODGridRow();
				for(int c=0;c<_table.Columns.Count;c++) {
					row.Cells.Add(_table.Rows[i][c].ToString());
				}
				gridMain.Rows.Add(row);
				gridMain.Rows[i].Tag=i;
			}
			gridMain.EndUpdate();
			gridMain.Title=WikiListCurName;
		}
开发者ID:mnisl,项目名称:OD,代码行数:30,代码来源:FormWikiListEdit.cs

示例9: FillGrid

 private void FillGrid()
 {
     gridEdu.BeginUpdate();
     gridEdu.Columns.Clear();
     ODGridColumn col=new ODGridColumn("Criteria",300);
     gridEdu.Columns.Add(col);
     col=new ODGridColumn("Link",700);
     gridEdu.Columns.Add(col);
     eduResourceList=EduResources.SelectAll();
     gridEdu.Rows.Clear();
     ODGridRow row;
     for(int i=0;i<eduResourceList.Count;i++) {
         row=new ODGridRow();
         if(eduResourceList[i].DiseaseDefNum!=0) {
             row.Cells.Add("Problem: "+DiseaseDefs.GetItem(eduResourceList[i].DiseaseDefNum).DiseaseName);
         }
         else if(eduResourceList[i].Icd9Num!=0) {
           row.Cells.Add("ICD9: "+ICD9s.GetDescription(eduResourceList[i].Icd9Num));
         }
         else if(eduResourceList[i].MedicationNum!=0) {
             row.Cells.Add("Medication: "+Medications.GetDescription(eduResourceList[i].MedicationNum));
         }
         else {
             row.Cells.Add("Lab Results: "+eduResourceList[i].LabResultName+" "+eduResourceList[i].LabResultCompare);
         }
         row.Cells.Add(eduResourceList[i].ResourceUrl);
         gridEdu.Rows.Add(row);
     }
     gridEdu.EndUpdate();
 }
开发者ID:nampn,项目名称:ODental,代码行数:30,代码来源:FormEduResourceSetup.cs

示例10: FillGrid

		private void FillGrid() {
			table=Patients.GetPtDataTable(false,textLName.Text,textFName.Text,"",
				"",false,"","",
				"","","",0,
				false,false,DateTime.MinValue,0,"","","","");
			gridMain.BeginUpdate();
			gridMain.Columns.Clear();
			ODGridColumn col;
			col=new ODGridColumn("PatNum",70);
			gridMain.Columns.Add(col);
			col=new ODGridColumn("LName",120);
			gridMain.Columns.Add(col);
			col=new ODGridColumn("FName",120);
			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]["PatNum"].ToString());
				row.Cells.Add(table.Rows[i]["LName"].ToString());
				row.Cells.Add(table.Rows[i]["FName"].ToString());
				gridMain.Rows.Add(row);
			}
			gridMain.EndUpdate();
		}
开发者ID:mnisl,项目名称:OD,代码行数:25,代码来源:FormEhrPatientSelectSimple.cs

示例11: FillGridEdu

		private void FillGridEdu() {
			gridEdu.BeginUpdate();
			gridEdu.Columns.Clear();
			ODGridColumn col=new ODGridColumn("Criteria",300);
			gridEdu.Columns.Add(col);
			col=new ODGridColumn("Link",100);
			gridEdu.Columns.Add(col);
			eduResourceList=EduResources.GenerateForPatient(patCur.PatNum);
			gridEdu.Rows.Clear();
			ODGridRow row;
			for(int i=0;i<eduResourceList.Count;i++) {
				row=new ODGridRow();
				if(eduResourceList[i].DiseaseDefNum!=0) {
					row.Cells.Add("Problem: "+DiseaseDefs.GetItem(eduResourceList[i].DiseaseDefNum).DiseaseName);
					//row.Cells.Add("ICD9: "+DiseaseDefs.GetItem(eduResourceList[i].DiseaseDefNum).ICD9Code);
				}
				else if(eduResourceList[i].MedicationNum!=0) {
					row.Cells.Add("Medication: "+Medications.GetDescription(eduResourceList[i].MedicationNum));
				}
				else {
					row.Cells.Add("Lab Results: "+eduResourceList[i].LabResultName);
				}
				row.Cells.Add(eduResourceList[i].ResourceUrl);
				gridEdu.Rows.Add(row);
			}
			gridEdu.EndUpdate();
		}
开发者ID:mnisl,项目名称:OD,代码行数:27,代码来源:FormEhrEduResourcesPat.cs

示例12: FillGridReject

		private void FillGridReject() {
			gridReject.BeginUpdate();
			gridReject.Columns.Clear();
			ODGridColumn col;
			col=new ODGridColumn("Description",80);
			gridReject.Columns.Add(col);
			gridReject.Rows.Clear();
			ODGridRow row;
			for(int i=0;i<EhrLabSpecimenCur.ListEhrLabSpecimenRejectReason.Count;i++) {
				row=new ODGridRow();
				if(EhrLabSpecimenCur.ListEhrLabSpecimenRejectReason[i].SpecimenRejectReasonText!="") {
					row.Cells.Add(EhrLabSpecimenCur.ListEhrLabSpecimenRejectReason[i].SpecimenRejectReasonText);
				}
				else if(EhrLabSpecimenCur.ListEhrLabSpecimenRejectReason[i].SpecimenRejectReasonTextAlt!="") {
					row.Cells.Add(EhrLabSpecimenCur.ListEhrLabSpecimenRejectReason[i].SpecimenRejectReasonTextAlt);
				}
				else if(EhrLabSpecimenCur.ListEhrLabSpecimenRejectReason[i].SpecimenRejectReasonTextOriginal!="") {
					row.Cells.Add(EhrLabSpecimenCur.ListEhrLabSpecimenRejectReason[i].SpecimenRejectReasonTextOriginal);
				}
				else {
					row.Cells.Add("Unkown Reject Reason Code.");//should never happen
				}
				gridReject.Rows.Add(row);
			}
			gridReject.EndUpdate();
		}
开发者ID:romeroyonatan,项目名称:opendental,代码行数:26,代码来源:FormEhrLabSpecimenEdit.cs

示例13: FillGridSent

		private void FillGridSent() {
			List<RefAttach> listRefAttaches;
			gridSent.BeginUpdate();
			gridSent.Columns.Clear();
			ODGridColumn col=new ODGridColumn("DateTime",130,HorizontalAlignment.Center);
			gridSent.Columns.Add(col);
			col=new ODGridColumn("Meets",140,HorizontalAlignment.Center);
			gridSent.Columns.Add(col);
			_listHistorySent=EhrMeasureEvents.RefreshByType(PatCur.PatNum,EhrMeasureEventType.SummaryOfCareProvidedToDr);
			listRefAttaches=RefAttaches.GetRefAttachesForSummaryOfCareForPat(PatCur.PatNum);
			gridSent.Rows.Clear();
			ODGridRow row;
			for(int i=0;i<_listHistorySent.Count;i++) {
				row=new ODGridRow();
				row.Cells.Add(_listHistorySent[i].DateTEvent.ToString());
				if(_listHistorySent[i].FKey==0) {
					row.Cells.Add("");
				}
				else {
					//Only add an X in the grid for the measure events that meet the summary of care measure so that users can see which ones meet.
					for(int j=0;j<listRefAttaches.Count;j++) {
						if(listRefAttaches[j].RefAttachNum==_listHistorySent[i].FKey) {
							row.Cells.Add("X");
							break;
						}
					}
				}
				gridSent.Rows.Add(row);
			}
			gridSent.EndUpdate();
		}
开发者ID:mnisl,项目名称:OD,代码行数:31,代码来源:FormEhrSummaryOfCare.cs

示例14: FillGrid

		private void FillGrid(){
			gridMain.BeginUpdate();
			gridMain.Columns.Clear();
			ODGridColumn col;
			col=new ODGridColumn("Date Time",135);
			gridMain.Columns.Add(col);
			col=new ODGridColumn("Service",200);
			gridMain.Columns.Add(col);
			listPanels=LabPanels.GetPanelsForOrder(MedOrderCur.MedicalOrderNum);//for a new lab order, this will naturally return no results
			List<LabResult> listResults;
			gridMain.Rows.Clear();
			ODGridRow row;
			for(int i=0;i<listPanels.Count;i++) {
				row=new ODGridRow();
				listResults=LabResults.GetForPanel(listPanels[i].LabPanelNum);
				if(listResults.Count==0) {
					row.Cells.Add(" ");//to avoid a very short row
				}
				else {
					row.Cells.Add(listResults[0].DateTimeTest.ToString());
				}
				row.Cells.Add(listPanels[i].ServiceName);
				gridMain.Rows.Add(row);
			}
			gridMain.EndUpdate();
		}
开发者ID:romeroyonatan,项目名称:opendental,代码行数:26,代码来源:FormEhrMedicalOrderLabEdit.cs

示例15: FillGrid

		private void FillGrid(){
			listSuppliers=Suppliers.CreateObjects();
			gridMain.BeginUpdate();
			gridMain.Columns.Clear();
			ODGridColumn col=new ODGridColumn(Lan.g(this,"Name"),110);
			gridMain.Columns.Add(col);
			col=new ODGridColumn(Lan.g(this,"Phone"),90);
			gridMain.Columns.Add(col);
			col=new ODGridColumn(Lan.g(this,"CustomerID"),80);
			gridMain.Columns.Add(col);
			col=new ODGridColumn(Lan.g(this,"Website"),180);
			gridMain.Columns.Add(col);
			col=new ODGridColumn(Lan.g(this,"UserName"),80);
			gridMain.Columns.Add(col);
			col=new ODGridColumn(Lan.g(this,"Password"),80);
			gridMain.Columns.Add(col);
			col=new ODGridColumn(Lan.g(this,"Note"),150);
			gridMain.Columns.Add(col);
			gridMain.Rows.Clear();
			ODGridRow row;
			for(int i=0;i<listSuppliers.Count;i++){
				row=new ODGridRow();
				row.Cells.Add(listSuppliers[i].Name);
				row.Cells.Add(listSuppliers[i].Phone);
				row.Cells.Add(listSuppliers[i].CustomerId);
				row.Cells.Add(listSuppliers[i].Website);
				row.Cells.Add(listSuppliers[i].UserName);
				row.Cells.Add(listSuppliers[i].Password);
				row.Cells.Add(listSuppliers[i].Note);
				gridMain.Rows.Add(row);
			}
			gridMain.EndUpdate();
		}
开发者ID:romeroyonatan,项目名称:opendental,代码行数:33,代码来源:FormSuppliers.cs


注:本文中的OpenDental.UI.ODGridColumn类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。