/// <summary> /// 获取行程单打印路径 /// </summary> /// <param name="tourId">团队编号</param> /// <param name="tourType">团队类型</param> /// <returns></returns> protected string GetPrintXingChengDan(object tourId, object tourType) { if (tourId == null || tourType == null) { return("javascript:void(0)"); } string _tourId = tourId.ToString(); EyouSoft.Model.EnumType.TourStructure.TourType _tourType = (EyouSoft.Model.EnumType.TourStructure.TourType)tourType; string s = string.Empty; if (_tourType == TourType.出境团队 || _tourType == TourType.地接团队 || _tourType == TourType.组团团队) { s = Print_XingChengDan_TuanDui; } else if (_tourType == TourType.单项服务) { s = string.Empty; } else { s = Print_XingChengDan_SanPin; } if (string.IsNullOrEmpty(s) || s == "javascript:void(0)") { return("javascript:void(0)"); } return(s + "?tourid=" + _tourId); }
/// <summary> /// 获取结算单打印路径 /// </summary> /// <param name="orderId"></param> /// <param name="tourType"></param> /// <returns></returns> protected string GetPrintJieSuanDan(object orderId, object tourType) { if (orderId == null || tourType == null || Print_JieSuanDan == "javascript:void(0)") { return("javascript:void(0)"); } string _orderId = orderId.ToString(); EyouSoft.Model.EnumType.TourStructure.TourType _tourType = (EyouSoft.Model.EnumType.TourStructure.TourType)tourType; return(Print_JieSuanDan + "?OrderId=" + _orderId + "&tourType=" + (int)_tourType); }