本文整理汇总了C#中OpenDental类的典型用法代码示例。如果您正苦于以下问题:C# OpenDental类的具体用法?C# OpenDental怎么用?C# OpenDental使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
OpenDental类属于命名空间,在下文中一共展示了OpenDental类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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);
}
示例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();
}
示例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();
}
示例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);
}
示例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();
}
示例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);
}
}
示例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();
}
示例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;
}
示例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);
}
示例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
}
}
示例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;
}
示例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;
}
示例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;
}
}
示例14: gridMain_CellDoubleClick
private void gridMain_CellDoubleClick(object sender,OpenDental.UI.ODGridClickEventArgs e) {
RxSelected();
}
示例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;
}