• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# ODGridRow类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: 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


示例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

 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


示例9: FillGrid

		private void FillGrid() {
			gridMain.BeginUpdate();
			gridMain.Columns.Clear();
			ODGridColumn col;
			if(CDSPermissions.GetForUser(Security.CurUser.UserNum).ShowInfobutton) {
				col=new ODGridColumn("",18);//infobutton
				col.ImageList=imageListInfoButton;
				gridMain.Columns.Add(col);
			}
			col=new ODGridColumn("Conditions",300);
			gridMain.Columns.Add(col);
			col=new ODGridColumn("Instructions",400);
			gridMain.Columns.Add(col);
			col=new ODGridColumn("Bibliography",120);
			gridMain.Columns.Add(col);
			gridMain.Rows.Clear();
			ODGridRow row;
			for(int i=0;i<_table.Rows.Count;i++) {
				row=new ODGridRow();
				if(CDSPermissions.GetForUser(Security.CurUser.UserNum).ShowInfobutton) {
					row.Cells.Add(_table.Rows[i][0].ToString());//infobutton
				}
				row.Cells.Add(_table.Rows[i][1].ToString());//Trigger Text
				row.Cells.Add(_table.Rows[i][2].ToString());//TriggerInstructions
				row.Cells.Add(_table.Rows[i][3].ToString());//Bibliography
				row.Tag=(List<object>)_table.Rows[i][4];//List of objects to be sent to FormInfobutton;
				gridMain.Rows.Add(row);
			}
			gridMain.EndUpdate();
		}
开发者ID:mnisl,项目名称:OD,代码行数:30,代码来源:FormCDSIntervention.cs


示例10: 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


示例11: 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


示例12: 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


示例13: 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


示例14: 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


示例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


示例16: FillGrid

		private void FillGrid() {
			int curSelection=gridMain.GetSelectedIndex();
			gridMain.BeginUpdate();
			gridMain.Columns.Clear();
			gridMain.Columns.Add(new ODGridColumn(Lan.g("TableLabImage","Attached"),60,HorizontalAlignment.Center));
			gridMain.Columns.Add(new ODGridColumn(Lan.g("TableLabImage","Date"),80,HorizontalAlignment.Center));
			gridMain.Columns.Add(new ODGridColumn(Lan.g("TableLabImage","Category"),80,HorizontalAlignment.Center));
			gridMain.Columns.Add(new ODGridColumn(Lan.g("TableLabImage","Desc"),180,HorizontalAlignment.Left));
			gridMain.Rows.Clear();
			ODGridRow row;
			for(int i=0;i<_listPatientDocuments.Count;i++) {
				if(_listPatientDocuments[i].DocNum<=0) { //Invalid doc num indicates 'Waiting for images'. This flag is set in the Load event.
					continue;
				}
				//Test if this is a valid image.
				Bitmap bmp=ImageStore.OpenImage(_listPatientDocuments[i],_patFolder);
				if(bmp==null) {
					continue;
				}
				bmp.Dispose();
				bmp=null;
				bool isAttached=EhrLabImages.GetDocNumExistsInList(_ehrLabNum,_listPatientDocuments[i].DocNum,_listAttached);
				row=new ODGridRow();
				row.Cells.Add(isAttached?"X":"");
				row.Cells.Add(_listPatientDocuments[i].DateCreated.ToShortDateString());
				row.Cells.Add(DefC.GetName(DefCat.ImageCats,_listPatientDocuments[i].DocCategory));			  
				row.Cells.Add(_listPatientDocuments[i].Description);
				row.Tag=_listPatientDocuments[i];
				gridMain.Rows.Add(row);
			}			
			gridMain.EndUpdate();
			if(curSelection>=0) {
				gridMain.SetSelected(curSelection,true);
			}
		}
开发者ID:romeroyonatan,项目名称:opendental,代码行数:35,代码来源:FormEhrLabImageEdit.cs


示例17: FillGrid

		private void FillGrid() {
			gridMain.BeginUpdate();
			gridMain.Columns.Clear();
			ODGridColumn col=new ODGridColumn("Date Start",70);
			col.TextAlign=HorizontalAlignment.Center;
			gridMain.Columns.Add(col);
			col=new ODGridColumn("Date End",70);
			col.TextAlign=HorizontalAlignment.Center;
			gridMain.Columns.Add(col);
			col=new ODGridColumn("SOP Code",70);
			gridMain.Columns.Add(col);
			col=new ODGridColumn("Description",250);
			gridMain.Columns.Add(col);
			col=new ODGridColumn("Note",100);
			gridMain.Columns.Add(col);
			ListPayorTypes=PayorTypes.Refresh(PatCur.PatNum);
			gridMain.Rows.Clear();
			ODGridRow row;
			for(int i=0;i<ListPayorTypes.Count;i++) {
				row=new ODGridRow();
				row.Cells.Add(ListPayorTypes[i].DateStart.ToShortDateString());
				if(i==ListPayorTypes.Count-1) {
					row.Cells.Add("Current");
				}
				else {
					row.Cells.Add(ListPayorTypes[i+1].DateStart.ToShortDateString());
				}
				row.Cells.Add(ListPayorTypes[i].SopCode);
				row.Cells.Add(Sops.GetOneDescription(ListPayorTypes[i].SopCode));
				row.Cells.Add(ListPayorTypes[i].Note);
				gridMain.Rows.Add(row);
			}
			gridMain.EndUpdate();
		}
开发者ID:romeroyonatan,项目名称:opendental,代码行数:34,代码来源:FormPayorTypes.cs


示例18: FillMain

		private void FillMain() {
			gridMain.BeginUpdate();
			gridMain.Columns.Clear();
			ODGridColumn col=new ODGridColumn(Lan.g("TableApptTypes","Name"),150);
			gridMain.Columns.Add(col);
			col=new ODGridColumn(Lan.g("TableApptTypes","Color"),100);
			gridMain.Columns.Add(col);
			col=new ODGridColumn(Lan.g("TableApptTypes","Hidden"),0,HorizontalAlignment.Center);
			gridMain.Columns.Add(col);
			gridMain.Rows.Clear();
			ODGridRow row;
			_listApptTypes.Sort(AppointmentTypes.SortItemOrder);
			for(int i=0;i<_listApptTypes.Count;i++) {
				row=new ODGridRow();
				row.Cells.Add(_listApptTypes[i].AppointmentTypeName);
				//TODO: more elegantly display color. possibly by row (already supported), or color the cell (enhancement).
				//The text color is always black in the grid, but text is also always black on every appointment displayed in the appointment module.
				//If the user chooses a color that does makes the black text hard to read, then we want them to see that in this window immediately.
				row.Cells.Add(_listApptTypes[i].AppointmentTypeColor.Name);
				row.ColorBackG=_listApptTypes[i].AppointmentTypeColor;
				row.Cells.Add(_listApptTypes[i].IsHidden?"X":"");
				gridMain.Rows.Add(row);
			}
			gridMain.EndUpdate();
		}
开发者ID:mnisl,项目名称:OD,代码行数:25,代码来源:FormApptTypes.cs


示例19: FillGrid

		private void FillGrid() {
			gridMain.BeginUpdate();
			gridMain.Columns.Clear();
			ODGridColumn col=new ODGridColumn("Test Date",80);
			gridMain.Columns.Add(col);
			col=new ODGridColumn("LOINC",75);
			gridMain.Columns.Add(col);
			col=new ODGridColumn("Test Performed",130);
			gridMain.Columns.Add(col);
			col=new ODGridColumn("ResultVal",60);
			gridMain.Columns.Add(col);
			col=new ODGridColumn("Units",45);
			gridMain.Columns.Add(col);
			col=new ODGridColumn("Range",55);
			gridMain.Columns.Add(col);
			listResults = LabResults.GetForPanel(PanelCur.LabPanelNum);
			gridMain.Rows.Clear();
			ODGridRow row;
			for(int i=0;i<listResults.Count;i++) {
				row=new ODGridRow();
				row.Cells.Add(listResults[i].DateTimeTest.ToShortDateString());
				row.Cells.Add(listResults[i].TestID);
				row.Cells.Add(listResults[i].TestName);
				row.Cells.Add(listResults[i].ObsValue);
				row.Cells.Add(listResults[i].ObsUnits);
				row.Cells.Add(listResults[i].ObsRange);
				gridMain.Rows.Add(row);
			}
			gridMain.EndUpdate();
		}
开发者ID:mnisl,项目名称:OD,代码行数:30,代码来源:FormEhrLabPanelEdit.cs


示例20: FillGrid

		private void FillGrid() {
			gridMain.BeginUpdate();
			gridMain.Columns.Clear();
			ODGridColumn col;
			col=new ODGridColumn("Date Time",80,HorizontalAlignment.Center);//Formatted yyyyMMdd
			col.SortingStrategy=GridSortingStrategy.DateParse;
			gridMain.Columns.Add(col);
			col=new ODGridColumn("Placer Order Number",130,HorizontalAlignment.Center);//Should be PK but might not be. Instead use Placer Order Num.
			gridMain.Columns.Add(col);
			col=new ODGridColumn("Filler Order Number",130,HorizontalAlignment.Center);//Should be PK but might not be. Instead use Placer Order Num.
			gridMain.Columns.Add(col);
			col=new ODGridColumn("Test Performed",430);//Should be PK but might not be. Instead use Placer Order Num.
			gridMain.Columns.Add(col);
			col=new ODGridColumn("Results In",80,HorizontalAlignment.Center);//Or date of latest result? or both?
			gridMain.Columns.Add(col);
			ListEhrLabs = EhrLabs.GetAllForPat(PatCur.PatNum);
			gridMain.Rows.Clear();
			ODGridRow row;
			for(int i=0;i<ListEhrLabs.Count;i++) {
				row=new ODGridRow();
				string dateSt=ListEhrLabs[i].ResultDateTime.PadRight(8,'0').Substring(0,8);//stored in DB as yyyyMMddhhmmss-zzzz
				DateTime dateT=PIn.Date(dateSt.Substring(4,2)+"/"+dateSt.Substring(6,2)+"/"+dateSt.Substring(0,4));
				row.Cells.Add(dateT.ToShortDateString());//date only
				row.Cells.Add(ListEhrLabs[i].PlacerOrderNum);
				row.Cells.Add(ListEhrLabs[i].FillerOrderNum);
				row.Cells.Add(ListEhrLabs[i].UsiText);
				row.Cells.Add(ListEhrLabs[i].ListEhrLabResults.Count.ToString());
				gridMain.Rows.Add(row);
			}
			gridMain.EndUpdate();
		}
开发者ID:romeroyonatan,项目名称:opendental,代码行数:31,代码来源:FormEhrLabOrders.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# ODataAction类代码示例发布时间:2022-05-24
下一篇:
C# OCL类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap