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


C# Patient.GetNameFL方法代码示例

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


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

示例1: ReplaceVarsForEmail

		///<summary>Email statements allow variables to be present in the message body and subject, this method replaces those variables with the information from the patient passed in.  Simply pass in the string for the subject or body and the corresponding patient.</summary>
		private static string ReplaceVarsForEmail(string str,Patient pat) {
			//No need to check RemotingRole; no call to db.
			str=str.Replace("[monthlyCardsOnFile]",CreditCards.GetMonthlyCardsOnFile(pat.PatNum));
			str=str.Replace("[nameF]",pat.GetNameFirst());
			str=str.Replace("[nameFL]",pat.GetNameFL());
			str=str.Replace("[nameFLnoPref]",pat.GetNameFLnoPref());
			str=str.Replace("[namePref]",pat.Preferred);
			str=str.Replace("[PatNum]",pat.PatNum.ToString());
			str=str.Replace("[currentMonth]",DateTime.Now.ToString("MMMM"));
			return str;
		}
开发者ID:romeroyonatan,项目名称:opendental,代码行数:12,代码来源:Statements.cs

示例2: butPatSelect_Click

		private void butPatSelect_Click(object sender,EventArgs e) {
			FormPatientSelect FormPS=new FormPatientSelect();
			FormPS.ShowDialog();
			if(FormPS.DialogResult!=DialogResult.OK) {
				return;
			}
			if(PatCur!=null && PatCur.PatNum==FormPS.SelectedPatNum) {
				return;
			}
			PatCur=Patients.GetPat(FormPS.SelectedPatNum);
			textName.Text=PatCur.GetNameFL();
			labelExistingLab.Visible=true;
		}
开发者ID:mnisl,项目名称:OD,代码行数:13,代码来源:FormMedLabPatSelect.cs

示例3: FormTrojanCollect_Load

		private void FormTrojanCollect_Load(object sender,EventArgs e) {
			patCur=Patients.GetPat(PatNum);
			guarCur=Patients.GetPat(patCur.Guarantor);
			if(guarCur.EmployerNum==0){
				empCur=null;
			}
			else{
				empCur=Employers.GetEmployer(guarCur.EmployerNum);
			}
			if(guarCur.LName.Length==0){
				MessageBox.Show("Missing guarantor last name.");
				DialogResult=DialogResult.Cancel;
				return;
			}
			if(guarCur.FName.Length==0) {
				MessageBox.Show("Missing guarantor first name.");
				DialogResult=DialogResult.Cancel;
				return;
			}
			if(!Regex.IsMatch(guarCur.SSN,@"^\d{9}$")) {
				MessageBox.Show("Guarantor SSN must be exactly 9 digits.");
				DialogResult=DialogResult.Cancel;
				return;
			}
			if(guarCur.Address.Length==0) {
				MessageBox.Show("Missing guarantor address.");
				DialogResult=DialogResult.Cancel;
				return;
			}
			if(guarCur.City.Length==0) {
				MessageBox.Show("Missing guarantor city.");
				DialogResult=DialogResult.Cancel;
				return;
			}
			if(guarCur.State.Length!=2) {
				MessageBox.Show("Guarantor state must be 2 characters.");
				DialogResult=DialogResult.Cancel;
				return;
			}
			if(guarCur.Zip.Length<5) {
				MessageBox.Show("Invalid guarantor zip.");
				DialogResult=DialogResult.Cancel;
				return;
			}
			labelGuarantor.Text=guarCur.GetNameFL();
			labelAddress.Text=guarCur.Address;
			if(guarCur.Address2!=""){
				labelAddress.Text+=", "+guarCur.Address2;
			}
			labelCityStZip.Text=guarCur.City+", "+guarCur.State+" "+guarCur.Zip;
			labelSSN.Text=guarCur.SSN.Substring(0,3)+"-"+guarCur.SSN.Substring(3,2)+"-"+guarCur.SSN.Substring(5,4);
			if(guarCur.Birthdate.Year<1880){
				labelDOB.Text="";
			}
			else{
				labelDOB.Text=guarCur.Birthdate.ToString("MM/dd/yyyy");
			}
			labelPhone.Text=Clip(guarCur.HmPhone,13);
			if(empCur==null){
				labelEmployer.Text="";
				labelEmpPhone.Text="";
			}
			else{
				labelEmployer.Text=empCur.EmpName;
				labelEmpPhone.Text=empCur.Phone;
			}
			labelPatient.Text=patCur.GetNameFL();
			DataTable table=TrojanQueries.GetMaxProcedureDate(guarCur.PatNum);
			DateTime lastProcDate;
			if(table.Rows.Count==0){
				lastProcDate=DateTime.MinValue;//this should never happen
			}
			else{
				lastProcDate=PIn.Date(table.Rows[0][0].ToString());
			}
			table=TrojanQueries.GetMaxPaymentDate(guarCur.PatNum);
			DateTime lastPayDate;
			if(table.Rows.Count==0) {
				lastPayDate=DateTime.MinValue;
			}
			else {
				lastPayDate=PIn.Date(table.Rows[0][0].ToString());
			}
			if(lastPayDate>lastProcDate){
				textDate.Text=lastPayDate.ToString("MM/dd/yyyy");
			}
			else{
				textDate.Text=lastProcDate.ToString("MM/dd/yyyy");
			}
			textAmount.Text=guarCur.BalTotal.ToString("F2");
			textPassword.Text=PrefC.GetString(PrefName.TrojanExpressCollectPassword);
		}
开发者ID:mnisl,项目名称:OD,代码行数:92,代码来源:FormTrojanCollect.cs

示例4: FillFieldsForConsent

 private static void FillFieldsForConsent(Sheet sheet,Patient pat)
 {
     foreach(SheetField field in sheet.SheetFields) {
         switch(field.FieldName) {
             case "patient.nameFL":
                 field.FieldValue=pat.GetNameFL();
                 break;
             case "dateTime.Today":
                 field.FieldValue=DateTime.Today.ToShortDateString();
                 break;
         }
     }
 }
开发者ID:nampn,项目名称:ODental,代码行数:13,代码来源:SheetFiller.cs

示例5: FillFieldsForReferralSlip

 private static void FillFieldsForReferralSlip(Sheet sheet,Patient pat,Referral refer)
 {
     foreach(SheetField field in sheet.SheetFields) {
         switch(field.FieldName) {
             case "referral.nameFL":
                 field.FieldValue=Referrals.GetNameFL(refer.ReferralNum);
                 break;
             case "referral.address":
                 field.FieldValue=refer.Address;
                 if(refer.Address2!="") {
                     field.FieldValue+="\r\n"+refer.Address2;
                 }
                 break;
             case "referral.cityStateZip":
                 field.FieldValue=refer.City+", "+refer.ST+" "+refer.Zip;
                 break;
             case "referral.phone":
                 field.FieldValue="";
                 if(refer.Telephone.Length==10){
                     field.FieldValue="("+refer.Telephone.Substring(0,3)+")"
                         +refer.Telephone.Substring(3,3)+"-"
                         +refer.Telephone.Substring(6);
                 }
                 break;
             case "referral.phone2":
                 field.FieldValue=refer.Phone2;
                 break;
             case "patient.nameFL":
                 field.FieldValue=pat.GetNameFL();
                 break;
             case "dateTime.Today":
                 field.FieldValue=DateTime.Today.ToShortDateString();
                 break;
             case "patient.WkPhone":
                 field.FieldValue=pat.WkPhone;
                 break;
             case "patient.HmPhone":
                 field.FieldValue=pat.HmPhone;
                 break;
             case "patient.WirelessPhone":
                 field.FieldValue=pat.WirelessPhone;
                 break;
             case "patient.address":
                 field.FieldValue=pat.Address;
                 if(pat.Address2!="") {
                     field.FieldValue+="\r\n"+pat.Address2;
                 }
                 break;
             case "patient.cityStateZip":
                 field.FieldValue=pat.City+", "+pat.State+" "+pat.Zip;
                 break;
             case "patient.provider":
                 field.FieldValue=Providers.GetProv(Patients.GetProvNum(pat)).GetFormalName();
                 break;
             //case "notes"://an input field
         }
     }
 }
开发者ID:nampn,项目名称:ODental,代码行数:58,代码来源:SheetFiller.cs

示例6: FillFieldsForReferralLetter

 private static void FillFieldsForReferralLetter(Sheet sheet,Patient pat,Referral refer)
 {
     foreach(SheetField field in sheet.SheetFields) {
         switch(field.FieldName) {
             case "PracticeTitle":
                 field.FieldValue=PrefC.GetString(PrefName.PracticeTitle);
                 break;
             case "PracticeAddress":
                 field.FieldValue=PrefC.GetString(PrefName.PracticeAddress);
                 if(PrefC.GetString(PrefName.PracticeAddress2) != ""){
                     field.FieldValue+="\r\n"+PrefC.GetString(PrefName.PracticeAddress2);
                 }
                 break;
             case "practiceCityStateZip":
                 field.FieldValue=PrefC.GetString(PrefName.PracticeCity)+", "
                     +PrefC.GetString(PrefName.PracticeST)+"  "
                     +PrefC.GetString(PrefName.PracticeZip);
                 break;
             case "referral.phone":
                 field.FieldValue="";
                 if(refer.Telephone.Length==10) {
                     field.FieldValue="("+refer.Telephone.Substring(0,3)+")"
                         +refer.Telephone.Substring(3,3)+"-"
                         +refer.Telephone.Substring(6);
                 }
                 break;
             case "referral.phone2":
                 field.FieldValue=refer.Phone2;
                 break;
             case "referral.nameFL":
                 field.FieldValue=Referrals.GetNameFL(refer.ReferralNum);
                 break;
             case "referral.address":
                 field.FieldValue=refer.Address;
                 if(refer.Address2!="") {
                     field.FieldValue+="\r\n"+refer.Address2;
                 }
                 break;
             case "referral.cityStateZip":
                 field.FieldValue=refer.City+", "+refer.ST+" "+refer.Zip;
                 break;
             case "today.DayDate":
                 field.FieldValue=DateTime.Today.ToString("dddd")+", "+DateTime.Today.ToShortDateString();
                 break;
             case "patient.nameFL":
                 field.FieldValue=pat.GetNameFL();
                 break;
             case "referral.salutation":
                 field.FieldValue="Dear "+refer.FName+":";
                 break;
             case "patient.priProvNameFL":
                 field.FieldValue=Providers.GetFormalName(pat.PriProv);
                 break;
         }
     }
 }
开发者ID:nampn,项目名称:ODental,代码行数:56,代码来源:SheetFiller.cs

示例7: FillFieldsInStaticText


//.........这里部分代码省略.........
                 genderHisHer="His";
                 genderhisher="his";
                 genderHisHers="His";
                 genderhishers="his";
                 break;
             case PatientGender.Female:
                 genderHeShe="She";
                 genderheshe="she";
                 genderHimHer="Her";
                 genderhimher="her";
                 genderHimselfHerself="Herself";
                 genderhimselfherself="herself";
                 genderHisHer="Her";
                 genderhisher="her";
                 genderHisHers="Hers";
                 genderhishers="hers";
                 break;
             case PatientGender.Unknown:
                 genderHeShe="The patient";
                 genderheshe="the patient";
                 genderHimHer="The patient";
                 genderhimher="the patient";
                 genderHimselfHerself="The patient";
                 genderhimselfherself="the patient";
                 genderHisHer="The patient's";
                 genderhisher="the patient's";
                 genderHisHers="The patient's";
                 genderhishers="the patient's";
                 break;
         }
         Patient guar=Patients.GetPat(pat.Guarantor);
         if(guar!=null) {
             guarantorNameF=guar.FName;
             guarantorNameFL=guar.GetNameFL();
             guarantorNameL=guar.LName;
             guarantorNameLF=guar.GetNameLF();
             guarantorNamePref=guar.Preferred;
         }
         address=pat.Address;
         if(pat.Address2!="") {
             address+=", "+pat.Address2;
         }
         birthdate=pat.Birthdate.ToShortDateString();
         if(pat.Birthdate.Year<1880) {
             birthdate="";
         }
         dateFirstVisit=pat.DateFirstVisit.ToShortDateString();
         if(pat.DateFirstVisit.Year<1880) {
             dateFirstVisit="";
         }
         fam=Patients.GetFamily(pat.PatNum);
         List<Procedure> procsList=null;
         if(Sheets.ContainsStaticField(sheet,"treatmentPlanProcs") || Sheets.ContainsStaticField(sheet,"plannedAppointmentInfo")) {
             procsList=Procedures.Refresh(pat.PatNum);
             if(Sheets.ContainsStaticField(sheet,"treatmentPlanProcs")) {
                 for(int i=0;i<procsList.Count;i++) {
                     if(procsList[i].ProcStatus!=ProcStat.TP) {
                         continue;
                     }
                     if(treatmentPlanProcs!="") {
                         treatmentPlanProcs+="\r\n";
                     }
                     treatmentPlanProcs+=ProcedureCodes.GetStringProcCode(procsList[i].CodeNum)+", "
                     +Procedures.GetDescription(procsList[i])+", "
                     +procsList[i].ProcFee.ToString("c");
                 }
开发者ID:nampn,项目名称:ODental,代码行数:67,代码来源:SheetFiller.cs


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