private object GetFromType(string p) { if (p == "票券名称") { return(voucherModel.VoucherName); } else if (p == "票券面值") { return(voucherModel.VoucherPrice); } else if (p == "影院名称") { TemplateCore core = new TemplateCore(); return(core.GetTheaterName()); } else if (p == "发行日期") { return(voucherModel.ReleaseDate); } else if (p == "使用截至日期") { return(voucherModel.ExpireDate); } else if (p == "类型") { return(voucherModel.VoucherType); } else if (p == "券类") { return(voucherModel.VoucherSubType); } return(p); }
private object GetFromType(string p) { if (p == "影片名称") { return(model.FilmName); } else if (p == "排号") { return(model.RowNumber); } else if (p == "影厅名称") { return(model.HallName); } else if (p == "座号") { return(model.SeatNumber); } else if (p == "排号座号") { return(model.SeatNumberStr); } else if (p == "售票员工号") { return(model.StaffNumber); } else if (p == "影院名称") { TemplateCore core = new TemplateCore(); return(core.GetTheaterName()); } else if (p == "日期") { return(model.TicketDate); } else if (p == "票价") { return(model.TicketPrice); } else if (p == "时间") { return(model.TicketTime); } else if (p == "票种") { return(model.TicketType); } else if (p == "支付方式") { return(model.PayType); } else if (p == "出票时间") { return(model.SellTime); } else if (p == "条码") { return(model.BarCodeStr); } else if (p == "图标") { return(model.Icon); } else if (p == "厅场码") { return(model.HallFieldCode); } else if (p == "入座方式") { return(model.CheckingType); } else if (p == "票券名称") { return(voucherModel.VoucherName); } else if (p == "票券面值") { return(voucherModel.VoucherPrice); } else if (p == "影院名称") { TemplateCore core = new TemplateCore(); return(core.GetTheaterName()); } else if (p == "发行日期") { return(voucherModel.ReleaseDate); } else if (p == "使用截至日期") { return(voucherModel.ExpireDate); } else if (p == "类型") { return(voucherModel.VoucherType); } else if (p == "券类") { return(voucherModel.VoucherSubType); } return(p); }