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

C# OpenDental类代码示例

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

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



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

示例1: gridPat_CellDoubleClick

 public static void gridPat_CellDoubleClick(OpenDental.ContrFamily sender,Patient PatCur)
 {
     //again, named much like the original
     FormPatientEditP FormP=new FormPatientEditP();
     FormP.PatCur=PatCur;
     FormP.ShowDialog();
     sender.ModuleSelected(PatCur.PatNum);
 }
开发者ID:40,项目名称:OpenDental-Plugin-Sample,代码行数:8,代码来源:ContrFamilyP.cs


示例2: gridVaccine_CellDoubleClick

		private void gridVaccine_CellDoubleClick(object sender,OpenDental.UI.ODGridClickEventArgs e) {
			if(gridVaccine.GetSelectedIndex()==-1) {
				return;
			}
			FormEhrVaccinePatEdit FormV=new FormEhrVaccinePatEdit();
			FormV.VaccinePatCur=VaccineList[gridVaccine.GetSelectedIndex()];
			FormV.ShowDialog();
			FillGridVaccine();
		}
开发者ID:romeroyonatan,项目名称:opendental,代码行数:9,代码来源:FormEhrVaccines.cs


示例3: gridMain_CellDoubleClick

		private void gridMain_CellDoubleClick(object sender,OpenDental.UI.ODGridClickEventArgs e) {
			long vitalNum=listVs[e.Row].VitalsignNum;
			//change for EHR 2014
			FormVitalsignEdit2014 FormVSE=new FormVitalsignEdit2014();
			//FormEhrVitalsignEdit FormVSE=new FormEhrVitalsignEdit();
			FormVSE.VitalsignCur=Vitalsigns.GetOne(vitalNum);
			FormVSE.ShowDialog();
			FillGrid();
		}
开发者ID:romeroyonatan,项目名称:opendental,代码行数:9,代码来源:FormVitalsigns.cs


示例4: InitializeOnStartup_end

 public static void InitializeOnStartup_end(OpenDental.ContrAccount sender)
 {
     contrAccountP=new ContrAccountP();
     sender.Controls.Add(contrAccountP.panelInsInfoDetail);
     //any control could be used here:
     Label label2=(Label)sender.Controls.Find("label2",true)[0];
     label2.MouseHover+=new EventHandler(contrAccountP.label2_MouseHover);
     label2.MouseLeave+=new EventHandler(contrAccountP.label2_MouseLeave);
 }
开发者ID:40,项目名称:OpenDental-Plugin-Sample,代码行数:9,代码来源:ContrAccountP.cs


示例5: gridMain_CellDoubleClick

		private void gridMain_CellDoubleClick(object sender,OpenDental.UI.ODGridClickEventArgs e) {
			FormWikiListItemEdit FormWLIE = new FormWikiListItemEdit();
			FormWLIE.WikiListCurName=WikiListCurName;
			FormWLIE.ItemNum=PIn.Long(Table.Rows[e.Row][0].ToString());
			FormWLIE.ShowDialog();
			//saving occurs from within the form.
			if(FormWLIE.DialogResult!=DialogResult.OK) {
				return;
			}
			Table=WikiLists.GetByName(WikiListCurName);
			FillGrid();
		}
开发者ID:romeroyonatan,项目名称:opendental,代码行数:12,代码来源:FormWikiListEdit.cs


示例6: InitializeOnStartup

		public static void InitializeOnStartup(ContrChart contrChart,TabControl tabProc,ODGrid gridProg,Panel panelEcw,
			TabControl tabControlImages,Size ClientSize,
			ODGrid gridPtInfo,ToothChartWrapper toothChart,RichTextBox textTreatmentNotes,OpenDental.UI.Button butECWup,
			OpenDental.UI.Button butECWdown,TabPage tabPatInfo)
		{
			tabProc.SelectedIndex=0;
			tabProc.Height=259;
			if(UsingEcwTightOrFull()) {
				toothChart.Location=new Point(524+2,26);
				textTreatmentNotes.Location=new Point(524+2,toothChart.Bottom+1);
				textTreatmentNotes.Size=new Size(411,40);//make it a bit smaller than usual
				gridPtInfo.Visible=false;
				panelEcw.Visible=true;
				panelEcw.Location=new Point(524+2,textTreatmentNotes.Bottom+1);
				panelEcw.Size=new Size(411,tabControlImages.Top-panelEcw.Top+1);
				butECWdown.Location=butECWup.Location;//they will be at the same location, but just hide one or the other.
				butECWdown.Visible=false;
				tabProc.Location=new Point(0,28);
				gridProg.Location=new Point(0,tabProc.Bottom+2);
				gridProg.Height=ClientSize.Height-gridProg.Location.Y-2;
			}
			else {//normal:
				toothChart.Location=new Point(0,26);
				textTreatmentNotes.Location=new Point(0,toothChart.Bottom+1);
				textTreatmentNotes.Size=new Size(411,71);
				gridPtInfo.Visible=true;
				gridPtInfo.Location=new Point(0,textTreatmentNotes.Bottom+1);
				panelEcw.Visible=false;
				tabProc.Location=new Point(415,28);
				gridProg.Location=new Point(415,tabProc.Bottom+2);
				gridProg.Height=ClientSize.Height-gridProg.Location.Y-2;
			}
			if(Programs.UsingOrion) {
				textTreatmentNotes.Visible=false;
				contrChart.Controls.Remove(gridPtInfo);
				gridPtInfo.Visible=true;
				gridPtInfo.Location=new Point(0,0);
				gridPtInfo.Size=new Size(tabPatInfo.ClientSize.Width,tabPatInfo.ClientSize.Height);
				gridPtInfo.Anchor=AnchorStyles.Left | AnchorStyles.Right | AnchorStyles.Top | AnchorStyles.Bottom;
				tabPatInfo.Controls.Add(gridPtInfo);
				tabProc.SelectedTab=tabPatInfo;
				tabProc.Height=toothChart.Height-1;
				gridProg.Location=new Point(0,toothChart.Bottom+2);
				gridProg.HScrollVisible=true;
				gridProg.Height=ClientSize.Height-gridProg.Location.Y-2;
				gridProg.Width=ClientSize.Width-gridProg.Location.X-1;//full width
			}
			else {
				tabProc.TabPages.Remove(tabPatInfo);
			}
		}
开发者ID:mnisl,项目名称:OD,代码行数:51,代码来源:ChartLayoutHelper.cs


示例7: gridMain_CellDoubleClick

		private void gridMain_CellDoubleClick(object sender,OpenDental.UI.ODGridClickEventArgs e) {
			ConnectionGroup connGroup=_listCentralConnGroups[gridMain.SelectedIndices[0]].Copy();//Making copy so if they press cancel any changes won't persist.
			FormCentralConnectionGroupEdit FormCCGE=new FormCentralConnectionGroupEdit();
			FormCCGE.ConnectionGroupCur=connGroup;
			FormCCGE.ShowDialog();
			if(FormCCGE.DialogResult==DialogResult.OK) {
				if(FormCCGE.ConnectionGroupCur==null) {//Group was deleted in child window, remove it from list. (Deletion is also DialogResult.OK)
					_listCentralConnGroups.RemoveAt(gridMain.SelectedIndices[0]);
				}
				else{//Child window potentially updated the connection group, replace old version in list with current version.
					_listCentralConnGroups[gridMain.SelectedIndices[0]]=FormCCGE.ConnectionGroupCur;
				}
			}
			FillGrid();
		}
开发者ID:mnisl,项目名称:OD,代码行数:15,代码来源:FormCentralConnectionGroups.cs


示例8: gridMain_CellDoubleClick

		private void gridMain_CellDoubleClick(object sender, OpenDental.UI.ODGridClickEventArgs e) {
			FormAutomationEdit FormA=new FormAutomationEdit(Automations.Listt[e.Row]);
			FormA.ShowDialog();
			FillGrid();
			changed=true;
		}
开发者ID:romeroyonatan,项目名称:opendental,代码行数:6,代码来源:FormAutomation.cs


示例9: DataValid_BecameInvalid

 ///<summary>This is called when any local data becomes outdated.  It's purpose is to tell the other computers to update certain local data.</summary>
 private void DataValid_BecameInvalid(OpenDental.ValidEventArgs e)
 {
     if(e.OnlyLocal){
         if(!PrefsStartup()){//??
             return;
         }
         RefreshLocalData(InvalidType.AllLocal);//does local computer only
         return;
     }
     if(!e.ITypes.Contains((int)InvalidType.Date)
         && !e.ITypes.Contains((int)InvalidType.Task)
         && !e.ITypes.Contains((int)InvalidType.TaskPopup)){
         //local refresh for dates is handled within ContrAppt, not here
         InvalidType[] itypeArray=new InvalidType[e.ITypes.Count];
         for(int i=0;i<itypeArray.Length;i++){
             itypeArray[i]=(InvalidType)e.ITypes[i];
         }
         RefreshLocalData(itypeArray);//does local computer
     }
     string itypeString="";
     for(int i=0;i<e.ITypes.Count;i++){
         if(i>0){
             itypeString+=",";
         }
         itypeString+=e.ITypes[i].ToString();
     }
     Signalod sig=new Signalod();
     sig.ITypes=itypeString;
     if(e.ITypes.Contains((int)InvalidType.Date)){
         sig.DateViewing=e.DateViewing;
     }
     else{
         sig.DateViewing=DateTime.MinValue;
     }
     sig.SigType=SignalType.Invalid;
     if(e.ITypes.Contains((int)InvalidType.Task) || e.ITypes.Contains((int)InvalidType.TaskPopup)){
         sig.TaskNum=e.TaskNum;
     }
     Signalods.Insert(sig);
 }
开发者ID:nampn,项目名称:ODental,代码行数:41,代码来源:FormOpenDental.cs


示例10: lightSignalGrid1_ButtonClick

 private void lightSignalGrid1_ButtonClick(object sender,OpenDental.UI.ODLightSignalGridClickEventArgs e)
 {
     if(e.ActiveSignal!=null){//user trying to ack an existing light signal
         Signalods.AckButton(e.ButtonIndex+1,signalLastRefreshed);
         //then, manually ack the light on this computer.  The second ack in a few seconds will be ignored.
         lightSignalGrid1.SetButtonActive(e.ButtonIndex,Color.White,null);
         SigButDef butDef=SigButDefs.GetByIndex(e.ButtonIndex,SigButDefList);
         if(butDef!=null) {
             PaintOnIcon(butDef.SynchIcon,Color.White);
         }
         return;
     }
     if(e.ButtonDef==null || e.ButtonDef.ElementList.Length==0){//there is no signal to send
         return;
     }
     //user trying to send a signal
     Signalod sig=new Signalod();
     sig.SigType=SignalType.Button;
     //sig.ToUser=sigElementDefUser[listTo.SelectedIndex].SigText;
     //sig.FromUser=sigElementDefUser[listFrom.SelectedIndex].SigText;
     //need to do this all as a transaction?
     Signalods.Insert(sig);
     int row=0;
     Color color=Color.White;
     SigElementDef def;
     SigElement element;
     SigButDefElement[] butElements=SigButDefElements.GetForButton(e.ButtonDef.SigButDefNum);
     for(int i=0;i<butElements.Length;i++){
         element=new SigElement();
         element.SigElementDefNum=butElements[i].SigElementDefNum;
         element.SignalNum=sig.SignalNum;
         SigElements.Insert(element);
         if(SigElementDefs.GetElement(element.SigElementDefNum).SigElementType==SignalElementType.User){
             sig.ToUser=SigElementDefs.GetElement(element.SigElementDefNum).SigText;
             Signalods.Update(sig);
         }
         def=SigElementDefs.GetElement(element.SigElementDefNum);
         if(def.LightRow!=0) {
             row=def.LightRow;
         }
         if(def.LightColor.ToArgb()!=Color.White.ToArgb()) {
             color=def.LightColor;
         }
     }
     sig.ElementList=new SigElement[0];//we don't really care about these
     if(row!=0 && color!=Color.White) {
         lightSignalGrid1.SetButtonActive(row-1,color,sig);//this just makes it seem more responsive.
         //we can skip painting on the icon
     }
 }
开发者ID:nampn,项目名称:ODental,代码行数:50,代码来源:FormOpenDental.cs


示例11: gridMain_CellDoubleClick

		private void gridMain_CellDoubleClick(object sender,OpenDental.UI.ODGridClickEventArgs e) {
			if(ViewRelat && listRelat.SelectedIndex==-1) {
				MessageBox.Show(Lan.g(this,"Please select a relationship first."));
				return;
			}
			if(ViewRelat) {
				PatRelat=(Relat)listRelat.SelectedIndex;
			}
			SelectedSub=SubList[e.Row];
			SelectedPlan=InsPlans.GetPlan(SubList[e.Row].PlanNum,PlanList);
			DialogResult=DialogResult.OK;
		}
开发者ID:mnisl,项目名称:OD,代码行数:12,代码来源:FormInsPlanSelect.cs


示例12: grid_CellDoubleClick

		private void grid_CellDoubleClick(object sender, OpenDental.UI.ODGridClickEventArgs e) {
			SelectedPatNum=PIn.Long(Table.Rows[e.Row]["PatNum"].ToString());
			Cursor=Cursors.WaitCursor;
			long selectedApt=PIn.Long(Table.Rows[e.Row]["AptNum"].ToString());
			//Appointment apt=Appointments.GetOneApt(selectedApt);
			FormApptEdit FormA=new FormApptEdit(selectedApt);
			FormA.PinIsVisible=true;
			FormA.ShowDialog();
			if(FormA.PinClicked) {
				PinClicked=true;
				AptSelected=selectedApt;
				DialogResult=DialogResult.OK;
				return;
			}
			else {
				FillMain();
			}
			for(int i=0;i<Table.Rows.Count;i++){
				if(PIn.Long(Table.Rows[i]["AptNum"].ToString())==selectedApt){
					grid.SetSelected(i,true);
				}
			}
			SetFamilyColors();
			Cursor=Cursors.Default;
		}
开发者ID:romeroyonatan,项目名称:opendental,代码行数:25,代码来源:FormConfirmList.cs


示例13: ToolBarMain_ButtonClick

		private void ToolBarMain_ButtonClick(object sender,OpenDental.UI.ODToolBarButtonClickEventArgs e) {
			switch(e.Button.Tag.ToString()) {
				case "Add":
					Add_Click();
					break;
				case "Reconcile":
					Reconcile_Click();
					break;
				case "Print":
					Print_Click();
					break;
				case "Close":
					this.Close();
					break;
			}
		}
开发者ID:mnisl,项目名称:OD,代码行数:16,代码来源:FormJournal.cs


示例14: gridMain_CellDoubleClick

		private void gridMain_CellDoubleClick(object sender,OpenDental.UI.ODGridClickEventArgs e) {
			RxSelected();
		}
开发者ID:mnisl,项目名称:OD,代码行数:3,代码来源:FormRxSelect.cs


示例15: gridMain_CellDoubleClick

 private void gridMain_CellDoubleClick(object sender, OpenDental.UI.ODGridClickEventArgs e)
 {
     FormPayPeriodEdit FormP=new FormPayPeriodEdit(PayPeriods.List[e.Row]);
     FormP.ShowDialog();
     FillGrid();
     changed=true;
 }
开发者ID:nampn,项目名称:ODental,代码行数:7,代码来源:FormTimeCardSetup.cs


示例16: ToolBarMain_ButtonClick

		private void ToolBarMain_ButtonClick(object sender,OpenDental.UI.ODToolBarButtonClickEventArgs e) {
			if(e.Button.Tag.GetType()==typeof(string)) {
				switch(e.Button.Tag.ToString()) {
					case "Print":
						ToolBarPrint_Click();
						break;
					case "Delete":
						ToolBarDelete_Click();
						break;
					case "Info":
						ToolBarInfo_Click();
						break;
					case "Sign":
						ToolBarSign_Click();
						break;
					case "ScanDoc":
						ToolBarScan_Click("doc");
						break;
					case "ScanMultiDoc":
						ToolBarScanMulti_Click();
						break;
					case "ScanXRay":
						ToolBarScan_Click("xray");
						break;
					case "ScanPhoto":
						ToolBarScan_Click("photo");
						break;
					case "Import":
						ToolBarImport_Click();
						break;
					case "Export":
						ToolBarExport_Click();
						break;
					case "Copy":
						ToolBarCopy_Click();
						break;
					case "Paste":
						ToolBarPaste_Click();
						break;
					case "Forms":
						MsgBox.Show(this,"Use the dropdown list.  Add forms to the list by copying image files into your A-Z folder, Forms.  Restart the program to see newly added forms.");
						break;
					case "Capture":
						ToolBarCapture_Click();
						break;
					case "Close":
						ToolBarClose_Click();
						break;
				}
			}
			else if(e.Button.Tag.GetType()==typeof(long)) {
				ProgramL.Execute((long)e.Button.Tag,PatCur);
			}
		}
开发者ID:romeroyonatan,项目名称:opendental,代码行数:54,代码来源:ContrImages.cs


示例17: grid_CellClick

		private void grid_CellClick(object sender, OpenDental.UI.ODGridClickEventArgs e) {
			//row selected before this event triggered
			SelectedPatNum=PIn.Long(Table.Rows[e.Row]["PatNum"].ToString());
			SetFamilyColors();
			comboStatus.SelectedIndex=-1;
		}
开发者ID:romeroyonatan,项目名称:opendental,代码行数:6,代码来源:FormConfirmList.cs


示例18: ToolBarMain_ButtonClick

		private void ToolBarMain_ButtonClick(object sender,OpenDental.UI.ODToolBarButtonClickEventArgs e) {
			switch(e.Button.Tag.ToString()) {
				case "Add":
					Add_Click();
					break;
				case "Edit":
					Edit_Click();
					break;
				case "Close":
					Close();
					break;
			}
			/*	case "Fwd":
					OnFwd_Click();
					break;
				
			}*/
		}
开发者ID:romeroyonatan,项目名称:opendental,代码行数:18,代码来源:FormAccounting.cs


示例19: gridMain_CellDoubleClick

 private void gridMain_CellDoubleClick(object sender,OpenDental.UI.ODGridClickEventArgs e)
 {
     bool isCat=false;
     long selectedKey=0;
     if(gridMain.Rows[e.Row].Tag.GetType()==typeof(CovCat)){
         isCat=true;
         selectedKey=((CovCat)gridMain.Rows[e.Row].Tag).CovCatNum;
         FormInsCatEdit FormE=new FormInsCatEdit((CovCat)gridMain.Rows[e.Row].Tag);
         FormE.ShowDialog();
         if(FormE.DialogResult!=DialogResult.OK) {
             return;
         }
     }
     else{//covSpan
         selectedKey=((CovSpan)gridMain.Rows[e.Row].Tag).CovSpanNum;
         FormInsSpanEdit FormE=new FormInsSpanEdit((CovSpan)gridMain.Rows[e.Row].Tag);
         FormE.ShowDialog();
         if(FormE.DialogResult!=DialogResult.OK){
             return;
         }
     }
     changed=true;
     FillSpans();
     for(int i=0;i<gridMain.Rows.Count;i++){
         if(isCat && gridMain.Rows[i].Tag.GetType()==typeof(CovCat)
             && selectedKey==((CovCat)gridMain.Rows[i].Tag).CovCatNum)
         {
             gridMain.SetSelected(i,true);
         }
         if(!isCat && gridMain.Rows[i].Tag.GetType()==typeof(CovSpan)
             && selectedKey==((CovSpan)gridMain.Rows[i].Tag).CovSpanNum)
         {
             gridMain.SetSelected(i,true);
         }
     }
 }
开发者ID:nampn,项目名称:ODental,代码行数:36,代码来源:FormInsCatsSetup.cs


示例20: gridMain_CellDoubleClick

		private void gridMain_CellDoubleClick(object sender, OpenDental.UI.ODGridClickEventArgs e) {
			FormApptRuleEdit FormA=new FormApptRuleEdit(AppointmentRuleC.List[e.Row]);
			FormA.ShowDialog();
			FillGrid();
			changed=true;
		}
开发者ID:mnisl,项目名称:OD,代码行数:6,代码来源:FormApptRules.cs



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
C# UI.Button类代码示例发布时间:2022-05-24
下一篇:
C# OpenCbsReader类代码示例发布时间: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