- 客户在预定过程中会提出更换酒店的需求,由此带来客服人员的沟通成本的增加。
- 产品经理设定航班时在售价和是否高端方面的两难抉择,希望能由客人来自行选择。
客户在预定过程中:
- 如果行程中的某一天,有可选酒店,客户可以根据偏好和价格进行选择。
- 如果出发日、中转日、回程日,有可选航班,客户可以根据偏好和价格进行选择。
public class Foo | |
{ | |
public virtual IEnumerable<Product> Page(IEnumerable<Product> list, Model.Pager pager) | |
{ | |
IEnumerable<Product> b; | |
if (pager == null) | |
{ | |
throw new ArgumentNullException("pager"); | |
} | |
var q = list as IQueryable<Product>; |
/// <summary> | |
/// http://stackoverflow.com/questions/2787506/cast-string-to-enum-with-enum-attribute | |
/// todo: http://www.cnblogs.com/smalldust/archive/2006/04/25/384657.html 利用缓存优化 | |
/// </summary> | |
/// <param name="value"></param> | |
/// <returns></returns> | |
public static string GetDescription(this Enum value) | |
{ | |
if (value == null) | |
{ |
/* construct */ | |
function Controller() { | |
this.viewModel = new ViewModel(); | |
} | |
/* public methods */ | |
Controller.prototype.index = function () { | |
var controller = this; | |
controller._bindEventList(); | |
}; |
// http://stackoverflow.com/questions/13124218/asp-net-mvc-4-use-bundles-beneficts-for-url-content?rq=1 | |
public static IHtmlString DynamicScriptsBundle( this HtmlHelper htmlHelper, string nombre, params string[] urls) | |
{ | |
string path = string .Format("~/{0}", nombre); | |
if (BundleTable.Bundles.GetBundleFor(path) == null) | |
BundleTable.Bundles.Add(new ScriptBundle(path).Include(urls)); | |
return Scripts .Render(path); | |
} |
function foo(site, content, url, pic) { | |
var a = { | |
weibo: 'http://service.weibo.com/share/share.php?url={$url}&title={$content}&pic={$pic}', | |
tqq: 'http://v.t.qq.com/share/share.php?url={$url}&title={$content}&pic={$pic}', | |
renren: 'http://share.renren.com/share/buttonshare?link={$url}&title={$content}', | |
qzone: 'http://sns.qzone.qq.com/cgi-bin/qzshare/cgiqzshareonekey?url={$url}&title={$content}&pics={$pic}' | |
}; | |
var b = { | |
content: encodeURIComponent(content), | |
url: encodeURIComponent(url), |
public class SelectListFactory | |
{ | |
public static IEnumerable<SelectListItem> Create<TEnum, T>(bool addAll) | |
where TEnum : struct | |
where T : struct | |
{ | |
if (!typeof(TEnum).IsEnum) throw new ArgumentException("Enum is required.", "TEnum"); | |
if (typeof(T) != Enum.GetUnderlyingType(typeof(TEnum))) throw new ArgumentException("Enum's underlying type is required", "T"); | |
var collection = Enum.GetValues(typeof(TEnum)).Cast<TEnum>(); |
void Main() | |
{ | |
List<PriceRow> prs = new List<PriceRow>{ | |
new PriceRow{ | |
BeginDate = DateTime.Now.Date, | |
EndDate = DateTime.Now.Date.AddDays(5), | |
Price = 5000, | |
}, | |
new PriceRow{ | |
BeginDate = DateTime.Now.Date.AddDays(1), |
namespace HHTravel.Base.Common.Framework.Web.CtripWSRef | |
{ | |
/// <remarks/> | |
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] | |
[System.Diagnostics.DebuggerStepThroughAttribute()] | |
[System.ComponentModel.DesignerCategoryAttribute("code")] | |
[System.Web.Services.WebServiceBindingAttribute(Name = "CtripWSSoap", Namespace = "http://tempuri.org/")] | |
public partial class CtripWS : System.Web.Services.Protocols.SoapHttpClientProtocol | |
{ |
var list = query.ToList(); | |
var list2 = query2.ToList(); | |
List<string> idsWillRemove = new List<string>(); | |
foreach (var p1 in list) | |
{ | |
var p2 = list2.SingleOrDefault(plan2 => plan2.ShoppingInfoId == p1.ShoppingInfoId); | |
if (p2 == null) | |
{ | |
idsWillRemove.Add(p1.ShoppingInfoId); | |
} |