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


C# OpenDentBusiness.Patient类代码示例

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


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

示例1: SendData

 ///<summary>Launches the program using a combination of command line characters and the patient.Cur data.</summary>
 public static void SendData(Program ProgramCur, Patient pat)
 {
     ArrayList ForProgram=ProgramProperties.GetForProgram(ProgramCur.ProgramNum);;
     if(pat!=null){
         ProgramProperty PPCur=ProgramProperties.GetCur(ForProgram, "Storage Path");
         string comline="-P"[email protected]"\";
         //Patient id can be any string format
         PPCur=ProgramProperties.GetCur(ForProgram, "Enter 0 to use PatientNum, or 1 to use ChartNum");;
         if(PPCur.PropertyValue=="0"){
             comline+=pat.PatNum.ToString();
         }
         else{
             comline+=pat.ChartNumber;
         }
         comline+=" -N"+pat.LName+", "+pat.FName;
         comline=comline.Replace("\"","");//gets rid of any quotes
         comline=comline.Replace("'","");//gets rid of any single quotes
         try{
             Process.Start(ProgramCur.Path,comline);
         }
         catch{
             MessageBox.Show(ProgramCur.Path+" is not available.");
         }
     }//if patient is loaded
     else{
         try{
             Process.Start(ProgramCur.Path);//should start Trophy without bringing up a pt.
         }
         catch{
             MessageBox.Show(ProgramCur.Path+" is not available.");
         }
     }
 }
开发者ID:nampn,项目名称:ODental,代码行数:34,代码来源:Trophy.cs

示例2: SendData

		///<summary>Launches the program using the patient.Cur data.</summary>
		public static void SendData(Program ProgramCur, Patient pat){
			string path=Programs.GetProgramPath(ProgramCur);
			//mtconnector.exe -patid 123  -fname John  -lname Doe  -ssn 123456789  -dob 01/25/1962  -gender M
			ArrayList ForProgram=ProgramProperties.GetForProgram(ProgramCur.ProgramNum);;
			if(pat==null){
				MessageBox.Show("Please select a patient first");
				return;
			}
			string info="-patid ";
			ProgramProperty PPCur=ProgramProperties.GetCur(ForProgram, "Enter 0 to use PatientNum, or 1 to use ChartNum");;
			if(PPCur.PropertyValue=="0"){
				info+=pat.PatNum.ToString()+"  ";
			}
			else{
				info+=pat.ChartNumber+"  ";
			}
			info+="-fname "+pat.FName+"  "
				+"-lname "+pat.LName+"  "
				+"-ssn "+pat.SSN+"  "
				+"-dob "+pat.Birthdate.ToShortDateString()+"  "
				+"-gender ";
			if(pat.Gender==PatientGender.Male){
				info+="M";
			}
			else{
				info+="F";
			}
			try{
				Process.Start(path,info);
			}
			catch{
				MessageBox.Show(path+" is not available.");
			}
			
		}
开发者ID:mnisl,项目名称:OD,代码行数:36,代码来源:DentForms.cs

示例3: SendData

		///<summary></summary>
		public static void SendData(Program ProgramCur,Patient pat) {
			_path=Programs.GetProgramPath(Programs.GetCur(ProgramName.DemandForce));
			if(!File.Exists(_path)) {
				MessageBox.Show(_path+" could not be found.");
				return;
			}
			if(MessageBox.Show(Lan.g("DemandForce","This may take 20 minutes or longer")+".  "+Lan.g("DemandForce","Continue")+"?","",MessageBoxButtons.OKCancel)!=DialogResult.OK) {
				return;
			}
			_formProg=new FormProgress();
			_formProg.MaxVal=100;
			_formProg.NumberMultiplication=1;
			_formProg.DisplayText="";
			_formProg.NumberFormat="F";//Show whole percentages, not fractional percentages.
			Thread workerThread=new Thread(new ThreadStart(InstanceBridgeExport));
			workerThread.Start();
			if(_formProg.ShowDialog()==DialogResult.Cancel) {
				workerThread.Abort();
				MessageBox.Show(Lan.g("DemandForce","Export cancelled")+". "+Lan.g("DemandForce","Partially created file has been deleted")+".");
				CheckCreatedFile(CodeBase.ODFileUtils.CombinePaths(Path.GetDirectoryName(_path),"extract.xml"));
				_formProg.Dispose();
				return;
			}
			MessageBox.Show(Lan.g("DemandForce","Export complete")+". "+Lan.g("DemandForce","Press OK to launch DemandForce")+".");
			try {
				Process.Start(_path);//We might have to add extract.xml to launch command in the future.
			}
			catch {
				MessageBox.Show(_path+" is not available.");
			}
			_formProg.Dispose();
		}
开发者ID:mnisl,项目名称:OD,代码行数:33,代码来源:DemandForce.cs

示例4: SendData

 ///<summary>Launches the program using command line.</summary>
 public static void SendData(Program ProgramCur, Patient pat)
 {
     ArrayList ForProgram=ProgramProperties.GetForProgram(ProgramCur.ProgramNum);
     if(pat!=null){
         string info="";
         //Patient id can be any string format
         ProgramProperty PPCur=ProgramProperties.GetCur(ForProgram, "Enter 0 to use PatientNum, or 1 to use ChartNum");
         if(PPCur.PropertyValue=="0"){
             info+=" "+pat.PatNum.ToString();
         }
         else{
             info+=" "+pat.ChartNumber;
         }
         //We remove double-quotes from the first and last name of the patient so extra double-quotes don't
         //cause confusion in the command line parameters for Sopro.
         info+=" "+pat.LName.Replace("\"","")+" "+pat.FName.Replace("\"","");
         try{
             Process.Start(ProgramCur.Path,ProgramCur.CommandLine+info);
         }
         catch{
             MessageBox.Show(ProgramCur.Path+" is not available, or there is an error in the command line options.");
         }
     }//if patient is loaded
     else{
         try{
             Process.Start(ProgramCur.Path);//should start Sopro without bringing up a pt.
         }
         catch{
             MessageBox.Show(ProgramCur.Path+" is not available.");
         }
     }
 }
开发者ID:nampn,项目名称:ODental,代码行数:33,代码来源:Sopro.cs

示例5: SendData

		///<summary>Sends data for Patient.Cur by command line interface.</summary>
		public static void SendData(Program ProgramCur,Patient pat) {
			string path=Programs.GetProgramPath(ProgramCur);
			if(pat==null) {
				return;
			}
			//Example: c:\vixwin\vixwin -I 123ABC -N Bill^Smith -P X:\VXImages\
			string info="-I ";
			bool isChartNum=PIn.Bool(ProgramProperties.GetPropVal(ProgramCur.ProgramNum,"Enter 0 to use PatientNum, or 1 to use ChartNum"));
			string ppImagePath=ProgramProperties.GetPropVal(ProgramCur.ProgramNum,"Optional Image Path");
			if(isChartNum) {
				info+=pat.ChartNumber;//max 64 char
			}
			else {
				info+=pat.PatNum.ToString();
			}
			info+=" -N "+pat.FName.Replace(" ","")+"^"+pat.LName.Replace(" ","");//no spaces allowed
			if(ppImagePath!="") {//optional image path
				if(!Directory.Exists(ppImagePath)) {
					MessageBox.Show("Unable to find image path "+ppImagePath);
					return;
				}
				info+=" -P "+ ppImagePath;
			}
			try {
				Process.Start(path,info);
			}
			catch(Exception ex){
				MessageBox.Show(ex.Message+"\r\nFile and command line:\r\n"+path+" "+info);
			}
		}
开发者ID:mnisl,项目名称:OD,代码行数:31,代码来源:VixWin.cs

示例6: SendData

		///<summary>Launches the program using a combination of command line characters and the patient.Cur data.  They also have an available file based method which passes more information, but we don't use it yet.</summary>
		public static void SendData(Program ProgramCur, Patient pat){
			string path=Programs.GetProgramPath(ProgramCur);
			ArrayList ForProgram=ProgramProperties.GetForProgram(ProgramCur.ProgramNum);;
			if(pat!=null){
				string info="-";
				ProgramProperty PPCur=ProgramProperties.GetCur(ForProgram, "Enter 0 to use PatientNum, or 1 to use ChartNum");;
				if(PPCur.PropertyValue=="0"){
					info+=ClipTo(pat.PatNum.ToString(),10)+";";
				}
				else{
					info+=ClipTo(pat.ChartNumber,10)+";";
				}
				info+=ClipTo(pat.FName,25)+";"
					+ClipTo(pat.LName,25)+";"
					+ClipTo(pat.SSN,15)+";"
					+pat.Birthdate.ToString("MM/dd/yyyy")+";";
				try{
					Process.Start(path,info);
				}
				catch{
					MessageBox.Show(path+" is not available.");
				}
			}//if patient is loaded
			else{
				try{
					Process.Start(path);//should start ImageFX without bringing up a pt.
				}
				catch{
					MessageBox.Show(path+" is not available.");
				}
			}
		}
开发者ID:mnisl,项目名称:OD,代码行数:33,代码来源:ImageFX.cs

示例7: SendData

		///<summary>Command line.</summary>
		public static void SendData(Program ProgramCur, Patient pat){
			string path=Programs.GetProgramPath(ProgramCur);
			if(pat==null) {
				try {
					Process.Start(path);//Start iCat without bringing up a pt.
				}
				catch {
					MessageBox.Show(path+" is not available.");
				}
				return;
			}
			ArrayList ForProgram=ProgramProperties.GetForProgram(ProgramCur.ProgramNum);
			ProgramProperty PPCur=ProgramProperties.GetCur(ForProgram,"Enter 0 to use PatientNum, or 1 to use ChartNum");
			if(PPCur.PropertyValue=="1" && pat.ChartNumber=="") {
				MessageBox.Show("This patient must have a ChartNumber entered first.");
				return;
			}
			PPCur=ProgramProperties.GetCur(ForProgram,"Acquisition computer name");
			try {
				if(Environment.MachineName.ToUpper()==PPCur.PropertyValue.ToUpper()) {
					SendDataServer(ProgramCur,ForProgram,pat);
				}
				else {
					SendDataWorkstation(ProgramCur,ForProgram,pat);
				}
			}
			catch(Exception e) {
				MessageBox.Show("Error: "+e.Message);
			}
		}
开发者ID:romeroyonatan,项目名称:opendental,代码行数:31,代码来源:ICat.cs

示例8: SendData

        // AAD External Call declaration for Owandy bridge (nd)
        //static extern long SendMessage(long hWnd, long Msg, long wParam, string lParam);
        ///<summary>Launches the program using command line, then passes some data using Windows API.</summary>
        public static void SendData(Program ProgramCur,Patient pat)
        {
            //ProgramProperties.GetForProgram();
            string info;
            if(pat != null) {
                try {
                    //formHandle = Parent.Handle;
                    System.Diagnostics.Process.Start(ProgramCur.Path,ProgramCur.CommandLine);//"C /LINK "+ formHandle;
                    if(!IsWindow(hwndLink)) {
                        hwndLink=FindWindow("MjLinkWndClass",null);
                    }
                    // info = "/P:1,DEMO,Patient1";
                    //Patient id can be any string format
                    info = "/P:" + pat.PatNum + "," + pat.LName + "," + pat.FName;
                    if(IsWindow(hwndLink) == true) {
                        IntPtr lResp=SendMessage(hwndLink,WM_SETTEXT,0,info);
                    }

                }
                catch {
                    MessageBox.Show(ProgramCur.Path + " is not available, or there is an error in the command line options.");
                }
            }//if patient is loaded
            else {
                try {
                    Process.Start(ProgramCur.Path);//should start Owandy without bringing up a pt.
                }
                catch {
                    MessageBox.Show(ProgramCur.Path + " is not available.");
                }
            }
        }
开发者ID:nampn,项目名称:ODental,代码行数:35,代码来源:Owandy.cs

示例9: SendData

 ///<summary>Launches the program using a combination of command line characters and the patient.Cur data.  They also have an available file based method which passes more information like missing teeth, but we don't use it yet.  Their bridge specs are freely posted on their website.</summary>
 public static void SendData(Program ProgramCur, Patient pat)
 {
     ArrayList ForProgram=ProgramProperties.GetForProgram(ProgramCur.ProgramNum);
     if(pat==null){
         try{
             Process.Start(ProgramCur.Path);//should start Florida Probe without bringing up a pt.
         }
         catch{
             MessageBox.Show(ProgramCur.Path+" is not available.");
         }
         return;
     }
     string info="/search ";
     ProgramProperty PPCur=ProgramProperties.GetCur(ForProgram, "Enter 0 to use PatientNum, or 1 to use ChartNum");
     if(PPCur.PropertyValue=="0"){
         info+="/chart \""+pat.PatNum.ToString()+"\" ";
     }
     else{
         info+="/chart \""+Cleanup(pat.ChartNumber)+"\" ";
     }
     info+="/first \""+Cleanup(pat.FName)+"\" "
         +"/last \""+Cleanup(pat.LName)+"\"";
     //MessageBox.Show(info);
     //not used yet: /inputfile "path to file"
     try{
         Process.Start(ProgramCur.Path,info);
     }
     catch{
         MessageBox.Show(ProgramCur.Path+" is not available.");
     }
 }
开发者ID:nampn,项目名称:ODental,代码行数:32,代码来源:FloridaProbe.cs

示例10: SendData

		///<summary>Launches the program using a combination of command line characters and the patient.Cur data.</summary>
		public static void SendData(Program ProgramCur,Patient pat) {
			string path=Programs.GetProgramPath(ProgramCur);
			if(pat==null) {
				try {
					Process.Start(path);//should start HandyDentist without bringing up a pt.
				}
				catch {
					MessageBox.Show(path+" is not available.");
				}
				return;
			}
			string info="-no:\"";
			if(ProgramProperties.GetPropVal(ProgramCur.ProgramNum,"Enter 0 to use PatientNum, or 1 to use ChartNum")=="0") {
				info+=pat.PatNum.ToString();
			}
			else {
				if(pat.ChartNumber==null || pat.ChartNumber=="") {
					MsgBox.Show("HandyDentist","This patient does not have a chart number.");
					return;
				}
				info+=Tidy(pat.ChartNumber);
			}
			info+="\" -fname:\""+Tidy(pat.FName)+"\" ";
			info+="\" -lname:\""+Tidy(pat.LName)+"\" ";
			try {
				Process.Start(path,info);
			}
			catch(Exception ex) {
				MessageBox.Show(ex.Message);
			}
		}
开发者ID:mnisl,项目名称:OD,代码行数:32,代码来源:HandyDentist.cs

示例11: CopyForMovingSuperFamily

 /// <summary>When a patient leaves a superfamily, this copies the superfamily level popups to be in both places. Takes pat leaving, and new superfamily. If newSuperFamily is 0, superfamily popups will not be copied from the old superfamily.</summary>
 public static void CopyForMovingSuperFamily(Patient pat,long newSuperFamily)
 {
     if(RemotingClient.RemotingRole==RemotingRole.ClientWeb) {
         Meth.GetVoid(MethodBase.GetCurrentMethod(),pat);
         return;
     }
     //Get a list of all popups for the super family
     string command="SELECT * FROM popup "
         +"WHERE PopupLevel = "+POut.Int((int)EnumPopupLevel.SuperFamily)+" "
         +"AND PatNum IN (SELECT PatNum FROM patient WHERE SuperFamily = "+POut.Long(pat.SuperFamily)+")";
     List<Popup> SuperFamilyPopups=Crud.PopupCrud.SelectMany(command);
     Popup popup;
     for(int i=0;i<SuperFamilyPopups.Count;i++) {
         popup=SuperFamilyPopups[i].Copy();
         if(popup.PatNum==pat.PatNum) {//if popup is on the patient who's leaving, copy to superfamily head of old superfamily.
             popup.PatNum=pat.SuperFamily;
             if(newSuperFamily==0) {//If they are not going to a superfamily, delete the popup
                 Popups.DeleteObject(SuperFamilyPopups[i]);
             }
         }
         else {//if popup is on some other super family member, then copy to this patient.
             if(newSuperFamily!=0) {//Only if they are moving to a superfamily.
                 popup.PatNum=pat.PatNum;
             }
         }
         Popups.Insert(popup);//changes the PK
     }
 }
开发者ID:nampn,项目名称:ODental,代码行数:29,代码来源:Popups.cs

示例12: SendData

		public static void SendData(Program ProgramCur,Patient pat) {
			string path=Programs.GetProgramPath(ProgramCur);
			if(pat==null) {
				try {
					Process.Start(path);//should start rayMage without bringing up a pt.
				}
				catch {
					MessageBox.Show(path+" is not available.");
				}
			}
			else {
				string info=" /PATID \"";
				if(ProgramProperties.GetPropVal(ProgramCur.ProgramNum,"Enter 0 to use PatientNum, or 1 to use ChartNum")=="0"){
					info+=pat.PatNum.ToString();
				}
				else{
					info+=pat.ChartNumber;
				}
				info+="\" /NAME \""+pat.FName.Replace(" ","").Replace("\"","")+"\" /SURNAME \""+pat.LName.Replace(" ","").Replace("\"","")+"\"";
				try {
					Process.Start(path,ProgramCur.CommandLine+info);
				}
				catch {
					MessageBox.Show(path+" is not available, or there is an error in the command line options.");
				}
			}
		}
开发者ID:romeroyonatan,项目名称:opendental,代码行数:27,代码来源:RayMage.cs

示例13: FormMedical

 ///<summary></summary>
 public FormMedical(PatientNote patientNoteCur,Patient patCur)
 {
     InitializeComponent();// Required for Windows Form Designer support
     PatCur=patCur;
     PatientNoteCur=patientNoteCur;
     Lan.F(this);
 }
开发者ID:nampn,项目名称:ODental,代码行数:8,代码来源:FormMedical.cs

示例14: SendData

		///<summary>Launches the program using the patient.Cur data.</summary>
		public static void SendData(Program ProgramCur, Patient pat){
			string path=Programs.GetProgramPath(ProgramCur);
			ArrayList ForProgram=ProgramProperties.GetForProgram(ProgramCur.ProgramNum);;
			if(pat==null){
				MessageBox.Show("Please select a patient first");
				return;
			}
			string info="";
			//Patient id can be any string format
			ProgramProperty PPCur=ProgramProperties.GetCur(ForProgram, "Enter 0 to use PatientNum, or 1 to use ChartNum");;
			if(PPCur.PropertyValue=="0"){
				info+="-i \""+pat.PatNum.ToString()+"\" ";
			}
			else{
				info+="-i \""+pat.ChartNumber.Replace("\"","")+"\" ";
			}
			info+="-n \""+pat.LName.Replace("\"","")+", "
				+pat.FName.Replace("\"","")+"\"";
			//MessageBox.Show(info);
			try{
				Process.Start(path,info);
			}
			catch{
				MessageBox.Show(path+" is not available.");
			}
		}
开发者ID:mnisl,项目名称:OD,代码行数:27,代码来源:Lightyear.cs

示例15: SendData

		///<summary>Sends data for Patient.Cur by command line interface.</summary>
		public static void SendData(Program ProgramCur,Patient pat) {
			string path=Programs.GetProgramPath(ProgramCur);
			if(pat==null) {
				MsgBox.Show("VixWinBase36","Please select a patient first.");
				return;
			}
			//Example: c:\vixwin\vixwin -I 12ABYZ -N Bill^Smith -P X:\VXImages\12AB#$\
			string info="-I "+ConvertToBase36(pat.PatNum);
			string ppImagePath=ProgramProperties.GetPropVal(ProgramCur.ProgramNum,"Image Path");
			if(pat.FName.ToString()!="") {
				info+=" -N "+Tidy(pat.FName)+"^"+Tidy(pat.LName);
			}
			if(ppImagePath!="") {//optional image path
				if(!Directory.Exists(ppImagePath)) {
					MessageBox.Show("Unable to find image path "+ppImagePath);
					return;
				}
				if(!ppImagePath.EndsWith("\\")) {//if program path doesn't end with "\" then add it to the end.
					ppImagePath+="\\";
				}
				ppImagePath+=ConvertToBase36(pat.PatNum)+"\\";//if we later allow ChartNumbers, then we will have to validate them to be 6 digits or less.
				info+=" -P "+ ppImagePath;
			}
			try {
				Process.Start(path,info);
			}
			catch {
				MessageBox.Show(path+" is not available. Ensure that the program and image paths are valid.");
			}
		}
开发者ID:mnisl,项目名称:OD,代码行数:31,代码来源:VixWinBase36.cs


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