Esempio n. 1
0
        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 = "全部"
            });
        }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
 public ListAdmissionTicket(AdmissionTicket account)
 {
     _innerObject = account;
 }
Esempio n. 4
0
 public ListAdmissionTicket()
 {
     _innerObject = new AdmissionTicket();
 }
Esempio n. 5
0
 public void Delete(AdmissionTicket item)
 {
     _databaseInstance.Delete(item, TableName);
 }
Esempio n. 6
0
 public void Create(AdmissionTicket item)
 {
     item.id = _databaseInstance.Insert(item, TableName);
 }
Esempio n. 7
0
 public AdmissionTicketModelBase(AdmissionTicket admissionTicket)
 {
     _innerObject = admissionTicket;
 }
Esempio n. 8
0
 public AdmissionTicketModelBase()
 {
     _innerObject = new AdmissionTicket();
 }
Esempio n. 9
0
 private void SetItem(AdmissionTicket item)
 {
     this.SetInnerObject(item);
 }
Esempio n. 10
0
 protected void SetInnerObject(AdmissionTicket item)
 {
     _innerObject = item;
 }
Esempio n. 11
0
 public AdmissionTicketEdit(AdmissionTicket shop)
 {
     _innerObject = shop;
 }
Esempio n. 12
0
 public AdmissionTicketEdit()
 {
     _innerObject = new AdmissionTicket();
 }