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


C# Booking.GetBookingChangeHistoryPopupLinkImage方法代码示例

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


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

示例1: GetBookingText


//.........这里部分代码省略.........
                                }
                            }
                        }
                    }
                    else if (Utilities.GetAddressType().ToString() == "ContactAus")
                    {
                        ContactAus[] phoneNbrs = GetPatientsPhoneNumbersFromAusCache(patientsPhoneNumbersCache, curBooking.Patient.Person.EntityID);
                        if (phoneNbrs != null && phoneNbrs.Length > 0)
                        {
                            preferredNbr = phoneNbrs[0].PhoneNumberWithDashes;

                            bool curIsMobile = phoneNbrs[0].ContactType.ContactTypeID == 30;

                            for (int i = 1; i < phoneNbrs.Length; i++)
                            {
                                if (phoneNbrs[i].ContactType.ContactTypeID == 30 && !curIsMobile)
                                {
                                    curIsMobile = phoneNbrs[i].ContactType.ContactTypeID == 30;
                                    preferredNbr = phoneNbrs[i].PhoneNumberWithDashes;
                                }
                            }
                        }
                    }
                    else
                        throw new Exception("Unknown AddressType in config: " + Utilities.GetAddressType().ToString().ToString());
                }

                if (preferredNbr.Length > 0 && callCenterPrefix.Length > 0)
                    preferredNbr = callCenterPrefix + " " + preferredNbr;

                int  loggedInStaffID   = Session["StaffID"]       == null ? -1 : Convert.ToInt32(Session["StaffID"]);
                bool canSeePatientLink = userView.IsAdminView || userView.IsPrincipal || userView.IsExternal|| (curBooking.Patient != null && curBooking.Provider != null && curBooking.Provider.StaffID == loggedInStaffID);

                string patientLink = string.Empty;
                if (curBooking.Patient != null)
                {
                    string ptURL  = "PatientDetailV2.aspx?type=view&id=" + curBooking.Patient.PatientID;
                    //patientLink = curBooking.Patient == null ? "" : (canSeePatientLink ? flasingTextIcon + " " + "<a href=\"#\" onclick=\"open_new_window('PatientDetailV2.aspx?type=view&id=" + curBooking.Patient.PatientID + "', 1750, 1000);return false;\">" + curBooking.Patient.Person.FullnameWithoutMiddlename + (curBooking.Patient.Person.Nickname.Trim().Length == 0 ? "" : " (" + curBooking.Patient.Person.Nickname.Trim() + ")") + "</a><br />" : "<b>" + curBooking.Patient.Person.FullnameWithoutMiddlename + "</b><br />");
                    patientLink   = curBooking.Patient == null ? "" : (canSeePatientLink ? flasingTextIcon + " " + "<a href=\"" + ptURL + "\" onclick=\"var win=window.open('" + ptURL + "', '_blank'); win.focus();return false;\">" + curBooking.Patient.Person.FullnameWithoutMiddlename + (curBooking.Patient.Person.Nickname.Trim().Length == 0 ? "" : " (" + curBooking.Patient.Person.Nickname.Trim() + ")") + "</a><span style=\"color:transparent;\">-</span>" + (curBooking.Patient.Person.Dob == DateTime.MinValue ? "" : "(" + Utilities.GetAge(curBooking.Patient.Person.Dob) + ")") + "<br />" : "<b>" + curBooking.Patient.Person.FullnameWithoutMiddlename + "</b><br />");
                }

                bool isCancelled = curBooking.BookingStatus.ID == 188;
                bool notYetCompleted = curBooking.BookingStatus.ID == 0;

                // "td_1751_76_2015_02_16_0930"//
                string id = "td_" + curBooking.Organisation.OrganisationID + "_" + curBooking.Provider.StaffID + "_" + curBooking.DateStart.ToString("yyyy_MM_dd_HHmm");

                string firstRow = string.Empty;
                if (isShowable && !isPatientLoggedIn && !userView.IsExternalView && curBooking.Patient != null)
                {
                    firstRow = (bkHasChangeHistory ? curBooking.GetBookingChangeHistoryPopupLinkImage(null, false, !IsMobileDevice) + "&nbsp;" : "") + notesText + "&nbsp;" + (SiteIsGP ? ptMedsNotesText + "&nbsp;" + ptMedCondNotesText + "&nbsp;" : "") + (ptFilesText + "&nbsp;") + (notYetCompleted ? setConfirmedText + "&nbsp;" + setArrivedText : "");
                }
                else // first row still blank
                {
                    if (notYetCompleted && (userView.IsExternalView || isProviderViewAndOtherProviderBk))
                        firstRow += setArrivedText;
                }
                if (firstRow.Length > 0) firstRow += "<br />";

                if (SiteIsAgedCare || SiteIsClinic)
                {
                    return

                        // don't put notes in because the note is not linked to which PT in the group booking, so at end of PT page, it can't show the note only for that PT
                        //(curBooking.Patient == null ? ((userView.IsAdminView || (userView.IsProviderView && !isProviderViewAndOtherProviderBk)) ? notesText + "&nbsp;" : "") + "<font color=\"blue\"><b><i>Group Booking</i></b></font><br/>" : "") +
                        (curBooking.Patient == null ?  "<font color=\"blue\"><b><i>Group Booking</i></b></font><br/>" : "") +
                        firstRow +
                        (bookingTypeText.Length <= 0                                 ? "" : bookingTypeText + "<br/>") +
                        (!isCancelled                                                ? "" : "<b>[Cancelled" + (curBooking.InvoiceCount > 0 ? "" : " - No Inv") + "]</b><br/>") +
                        (!includeOrg  || curBooking.Organisation == null             ? "" : "<i>[" + curBooking.Organisation.Name + "]</i><br/>") +
                        (!incProvider || curBooking.Provider == null                 ? "" : curBooking.Provider.Person.FullnameWithoutMiddlename + "<br/>") +
                        (curBooking.Patient == null || !curBooking.Patient.IsDiabetic || isPatientLoggedIn ? "" : "<font color=\"blue\"><b><i>PT is Diabetic</i></b></font><br/>") +
                        patientLink +
                        (preferredNbr == string.Empty                                ? "" : preferredNbr + "<br/>") +
                        (curBooking.Offering == null                                 ? "" : curBooking.Offering.Name) +
                        (!isShowable || (!userView.IsProvider && !userView.IsAdminView) || !hasOwing || curBooking.Offering == null ? "" : "<br />" + owingText) +
                        (isShowable && bookingSlotType != BookingSlot.Type.None ? "<a href='javascript:void(0)' title=\"Long Click To Show Menu\r\nFor Mouse Without A Right Click Button\" onclick=\"ShowMenu_" + GetContextMenuClass(bookingSlotType, curBooking) + "('" + id + "');return false;\" style=\"text-decoration:none;\">&nbsp;★&nbsp;</a>&nbsp;" : "");
                }
                else
                {
                    return

                        // don't put notes in because the note is not linked to which PT in the group booking, so at end of PT page, it can't show the note only for that PT
                        //(curBooking.Patient == null ? ((userView.IsAdminView || (userView.IsProviderView && !isProviderViewAndOtherProviderBk)) ? notesText + "&nbsp;" : "") + "<font color=\"blue\"><b><i>Group Booking</i></b></font><br/>" : "") +
                        (curBooking.Patient == null ? "<font color=\"blue\"><b><i>Group Booking</i></b></font><br/>" : "") +
                        firstRow +
                        (!isCancelled                                                ? "" : "<b>[Cancelled" + (curBooking.InvoiceCount > 0 ? "" : " - No Inv") + "]</b><br/>") +
                        (!includeOrg  || curBooking.Organisation == null             ? "" : "<i>[" + curBooking.Organisation.Name + "]</i><br/>") +
                        (!incProvider || curBooking.Provider     == null             ? "" : curBooking.Provider.Person.FullnameWithoutMiddlename + "<br/>") +
                        (curBooking.Patient == null || !curBooking.Patient.IsDiabetic || isPatientLoggedIn ? "" : "<font color=\"blue\"><b><i>PT is Diabetic</i></b></font><br/>") +
                        patientLink +
                        (preferredNbr == string.Empty                                ? "" : preferredNbr + "<br/>") +
                        (curBooking.Offering == null                                 ? "" : curBooking.Offering.Name) +
                        (!isShowable || (!userView.IsProvider && !userView.IsAdminView) || !hasOwing  || curBooking.Offering == null ? "" : "<br />" + owingText) +
                        (isShowable && bookingSlotType != BookingSlot.Type.None ? "<a href='javascript:void(0)' onclick=\"ShowMenu_Menu_" + GetContextMenuClass(bookingSlotType, curBooking) + "('" + id + "');return false;\" style=\"text-decoration:none;\">&nbsp;★&nbsp;</a>&nbsp;" : "");
                }

            }
        }
    }
开发者ID:nblaurenciana-md,项目名称:Websites,代码行数:101,代码来源:BookingsV1.aspx.cs


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