コード例 #1
0
        private async void CreateFlyerType()
        {
            if (string.IsNullOrWhiteSpace(FlyerTypeName))
            {
                this.ShowMessage("飞机名称不能为空");
                return;
            }

            var request = new FlyerTypeEntity {
                TypeName = FlyerTypeName, ActionUserID = CPApplication.CurrentUser.UserName
            };

            await this.facade.CreateFlyerType(request);

            this.ShowMessage(CommonMsgResource.Msg_SaveSuccess);
            this.DialogResult = true;
        }
コード例 #2
0
 public async Task <int> UpdateFlyerType(FlyerTypeEntity entity)
 {
     return(await this.PutAsync <FlyerTypeEntity, int>("update", entity));
 }
コード例 #3
0
 public async Task <int> CreateFlyerType(FlyerTypeEntity entity)
 {
     return(await this.PostAsync <FlyerTypeEntity, int>("create", entity));
 }
コード例 #4
0
 public FlyerTypeCreate(FlyerTypeEntity flyerType)
     : this()
 {
     flyerTypeEntity = flyerType;
     FlyerTypeName   = flyerTypeEntity.TypeName;
 }