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


C# Patient.GetNameFLFormal方法代码示例

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


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

示例1: FillFieldsForLabelPatient

 private static void FillFieldsForLabelPatient(Sheet sheet,Patient pat)
 {
     foreach(SheetField field in sheet.SheetFields){
         switch(field.FieldName){
             case "nameFL":
                 field.FieldValue=pat.GetNameFLFormal();
                 break;
             case "nameLF":
                 field.FieldValue=pat.GetNameLF();
                 break;
             case "address":
                 field.FieldValue=pat.Address;
                 if(pat.Address2!=""){
                     field.FieldValue+="\r\n"+pat.Address2;
                 }
                 break;
             case "cityStateZip":
                 field.FieldValue=pat.City+", "+pat.State+" "+pat.Zip;
                 break;
             case "ChartNumber":
                 field.FieldValue=pat.ChartNumber;
                 break;
             case "PatNum":
                 field.FieldValue=pat.PatNum.ToString();
                 break;
             case "dateTime.Today":
                 field.FieldValue=DateTime.Today.ToShortDateString();
                 break;
             case "birthdate":
                 //only a temporary workaround:
                 field.FieldValue="BD: "+pat.Birthdate.ToShortDateString();
                 break;
             case "priProvName":
                 field.FieldValue=Providers.GetLongDesc(pat.PriProv);
                 break;
             case "text":
                 field.FieldValue=GetParamByName(sheet,"text").ParamValue.ToString();
                 break;
         }
     }
 }
开发者ID:nampn,项目名称:ODental,代码行数:41,代码来源:SheetFiller.cs

示例2: FillFieldsForPatientLetter

 private static void FillFieldsForPatientLetter(Sheet sheet,Patient pat)
 {
     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 "patient.nameFL":
                 field.FieldValue=pat.GetNameFLFormal();
                 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 "today.DayDate":
                 field.FieldValue=DateTime.Today.ToString("dddd")+", "+DateTime.Today.ToShortDateString();
                 break;
             case "patient.salutation":
                 field.FieldValue="Dear "+pat.GetSalutation()+":";
                 break;
             case "patient.priProvNameFL":
                 field.FieldValue=Providers.GetFormalName(pat.PriProv);
                 break;
         }
     }
 }
开发者ID:nampn,项目名称:ODental,代码行数:42,代码来源:SheetFiller.cs

示例3: FillFieldsInStaticText


//.........这里部分代码省略.........
             fldval=fldval.Replace("[balOver90]",fam.ListPats[0].BalOver90.ToString("c"));
             fldval=fldval.Replace("[balInsEst]",fam.ListPats[0].InsEst.ToString("c"));
             fldval=fldval.Replace("[balTotalMinusInsEst]",(fam.ListPats[0].BalTotal-fam.ListPats[0].InsEst).ToString("c"));
             fldval=fldval.Replace("[BillingType]",DefC.GetName(DefCat.BillingTypes,pat.BillingType));
             fldval=fldval.Replace("[Birthdate]",birthdate);
             fldval=fldval.Replace("[carrierName]",carrierName);
             fldval=fldval.Replace("[carrier2Name]",carrier2Name);
             fldval=fldval.Replace("[ChartNumber]",pat.ChartNumber);
             fldval=fldval.Replace("[carrierAddress]",carrierAddress);
             fldval=fldval.Replace("[carrierCityStZip]",carrierCityStZip);
             fldval=fldval.Replace("[cityStateZip]",pat.City+", "+pat.State+"  "+pat.Zip);
             fldval=fldval.Replace("[clinicDescription]",clinicDescription);
             fldval=fldval.Replace("[clinicAddress]",clinicAddress);
             fldval=fldval.Replace("[clinicCityStZip]",clinicCityStZip);
             fldval=fldval.Replace("[clinicPhone]",clinicPhone);
             fldval=fldval.Replace("[DateFirstVisit]",dateFirstVisit);
             fldval=fldval.Replace("[dateLastBW]",dateLastBW);
             fldval=fldval.Replace("[dateLastExam]",dateLastExam);
             fldval=fldval.Replace("[dateLastPanoFMX]",dateLastPanoFMX);
             fldval=fldval.Replace("[dateLastProphy]",dateLastProphy);
             fldval=fldval.Replace("[dateOfLastSavedTP]",dateOfLastSavedTP);
             fldval=fldval.Replace("[dateRecallDue]",dateRecallDue);
             fldval=fldval.Replace("[dateTimeLastAppt]",dateTimeLastAppt);
             fldval=fldval.Replace("[Email]",pat.Email);
             fldval=fldval.Replace("[famFinUrgNote]",fam.ListPats[0].FamFinUrgNote);
             fldval=fldval.Replace("[guarantorNameF]",guarantorNameF);
             fldval=fldval.Replace("[guarantorNameFL]",guarantorNameFL);
             fldval=fldval.Replace("[guarantorNameL]",guarantorNameL);
             fldval=fldval.Replace("[guarantorNamePref]",guarantorNamePref);
             fldval=fldval.Replace("[guarantorNameLF]",guarantorNameLF);
             fldval=fldval.Replace("[gender]",Lan.g("enumPatientGender",pat.Gender.ToString()));
             fldval=fldval.Replace("[genderHeShe]",genderHeShe);
             fldval=fldval.Replace("[genderheshe]",genderheshe);
             fldval=fldval.Replace("[genderHimHer]",genderHimHer);
             fldval=fldval.Replace("[genderhimher]",genderhimher);
             fldval=fldval.Replace("[genderHimselfHerself]",genderHimselfHerself);
             fldval=fldval.Replace("[genderhimselfherself]",genderhimselfherself);
             fldval=fldval.Replace("[genderHisHer]",genderHisHer);
             fldval=fldval.Replace("[genderhisher]",genderhisher);
             fldval=fldval.Replace("[genderHisHers]",genderHisHers);
             fldval=fldval.Replace("[genderhishers]",genderhishers);
             fldval=fldval.Replace("[guarantorNameFL]",fam.ListPats[0].GetNameFL());
             fldval=fldval.Replace("[HmPhone]",StripPhoneBeyondSpace(pat.HmPhone));
             fldval=fldval.Replace("[insAnnualMax]",insAnnualMax);
             fldval=fldval.Replace("[insDeductible]",insDeductible);
             fldval=fldval.Replace("[insDeductibleUsed]",insDeductibleUsed);
             fldval=fldval.Replace("[insFreqBW]",insFreqBW.TrimEnd());
             fldval=fldval.Replace("[insFreqExams]",insFreqExams.TrimEnd());
             fldval=fldval.Replace("[insFreqPanoFMX]",insFreqPanoFMX.TrimEnd());
             fldval=fldval.Replace("[insPending]",insPending);
             fldval=fldval.Replace("[insPercentages]",insPercentages);
             fldval=fldval.Replace("[insPlanGroupNumber]",insPlanGroupNumber);
             fldval=fldval.Replace("[insPlanGroupName]",insPlanGroupName);
             fldval=fldval.Replace("[insPlanNote]",insPlanNote);
             fldval=fldval.Replace("[insType]",insType);
             fldval=fldval.Replace("[insSubNote]",insSubNote);
             fldval=fldval.Replace("[insRemaining]",insRemaining);
             fldval=fldval.Replace("[insUsed]",insUsed);
             fldval=fldval.Replace("[ins2AnnualMax]",ins2AnnualMax);
             fldval=fldval.Replace("[ins2Deductible]",ins2Deductible);
             fldval=fldval.Replace("[ins2DeductibleUsed]",ins2DeductibleUsed);
             fldval=fldval.Replace("[ins2Pending]",ins2Pending);
             fldval=fldval.Replace("[ins2Percentages]",ins2Percentages);
             fldval=fldval.Replace("[ins2Remaining]",ins2Remaining);
             fldval=fldval.Replace("[ins2Used]",ins2Used);
             fldval=fldval.Replace("[MedUrgNote]",pat.MedUrgNote);
             fldval=fldval.Replace("[nameF]",pat.FName);
             fldval=fldval.Replace("[nameFL]",pat.GetNameFL());
             fldval=fldval.Replace("[nameFLFormal]",pat.GetNameFLFormal());
             fldval=fldval.Replace("[nameL]",pat.LName);
             fldval=fldval.Replace("[nameLF]",pat.GetNameLF());
             fldval=fldval.Replace("[nameMI]",pat.MiddleI);
             fldval=fldval.Replace("[namePref]",pat.Preferred);
             fldval=fldval.Replace("[nextSchedApptDateT]",nextSchedApptDateT);
             fldval=fldval.Replace("[nextSchedApptsFam]",nextSchedApptsFam.TrimEnd());
             fldval=fldval.Replace("[PatNum]",pat.PatNum.ToString());
             fldval=fldval.Replace("[plannedAppointmentInfo]",plannedAppointmentInfo);
             fldval=fldval.Replace("[priProvNameFormal]",priProv.GetFormalName());
             fldval=fldval.Replace("[recallInterval]",recallInterval);
             fldval=fldval.Replace("[referredFrom]",referredFrom);
             fldval=fldval.Replace("[referredTo]",referredTo.TrimEnd());
             fldval=fldval.Replace("[salutation]",pat.GetSalutation());
             fldval=fldval.Replace("[serviceNote]",serviceNote);
             fldval=fldval.Replace("[siteDescription]",Sites.GetDescription(pat.SiteNum));
             fldval=fldval.Replace("[subscriberID]",subscriberId);
             fldval=fldval.Replace("[subscriberNameFL]",subscriberNameFL);
             fldval=fldval.Replace("[subscriber2NameFL]",subscriber2NameFL);
             fldval=fldval.Replace("[timeNow]",DateTime.Now.ToShortTimeString());
             fldval=fldval.Replace("[tpResponsPartyAddress]",tpResponsPartyAddress);
             fldval=fldval.Replace("[tpResponsPartyCityStZip]",tpResponsPartyCityStZip);
             fldval=fldval.Replace("[tpResponsPartyNameFL]",tpResponsPartyNameFL);
             fldval=fldval.Replace("[treatmentPlanProcs]",treatmentPlanProcs);
             fldval=fldval.Replace("[WirelessPhone]",StripPhoneBeyondSpace(pat.WirelessPhone));
             fldval=fldval.Replace("[WkPhone]",StripPhoneBeyondSpace(pat.WkPhone));
         }
         fldval=fldval.Replace("[dateToday]",DateTime.Today.ToShortDateString());
         fldval=fldval.Replace("[practiceTitle]",PrefC.GetString(PrefName.PracticeTitle));
         field.FieldValue=fldval;
     }
 }
开发者ID:nampn,项目名称:ODental,代码行数:101,代码来源:SheetFiller.cs


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