public void Ready() { IEnumerable <IdNamePair> query = admissionTicketService.GetNormalALL() .ToList().Select(x => new IdNamePair { Key = x.id, Name = x.name }); AdmissionTicket.Bind(query); AdmissionTicket.Items.Insert(0, new IdNamePair() { Key = Globals.All, Name = "全部" }); }
public IMessageProvider Save() { var model = new AdmissionTicket(); model.introduce = this.introduce; model.name = this.name; model.state = AdmissionTicketState.Invalid; model.weekendAmount = this.weekendAmount; model.adultNum = this.adultNum; model.amount = this.amount; model.childNum = this.childNum; model.crateTime = DateTime.Now; AdmissionTicketService.Create(model); AddMessage("success", model.name); Logger.LogWithSerialNo(LogTypes.AddAdmissionTicketCreate, model.name, InnerObject.id, model); return(this); }
public ListAdmissionTicket(AdmissionTicket account) { _innerObject = account; }
public ListAdmissionTicket() { _innerObject = new AdmissionTicket(); }
public void Delete(AdmissionTicket item) { _databaseInstance.Delete(item, TableName); }
public void Create(AdmissionTicket item) { item.id = _databaseInstance.Insert(item, TableName); }
public AdmissionTicketModelBase(AdmissionTicket admissionTicket) { _innerObject = admissionTicket; }
public AdmissionTicketModelBase() { _innerObject = new AdmissionTicket(); }
private void SetItem(AdmissionTicket item) { this.SetInnerObject(item); }
protected void SetInnerObject(AdmissionTicket item) { _innerObject = item; }
public AdmissionTicketEdit(AdmissionTicket shop) { _innerObject = shop; }
public AdmissionTicketEdit() { _innerObject = new AdmissionTicket(); }