예제 #1
0
 /// <summary>
 /// 确认下单
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private async void Purchase_Clicked(object sender, EventArgs e)
 {
     var model = NewInfoDetailedModel.NewInfoModel;
     AffirmOrderModel.NewInfoModel = model;
     var code = model.Code;
     if (AccountHelper.LoginName.Equals(model.UserName))
     {
         await DisplayAlert("提示", "不允许自己接单", "确定");
         return;
     }
     HomeService service = new HomeService();
     var b = await service.AffirmOrderAsync(code);
     if (!b)
     {
         await DisplayAlert("提示", "下单失败", "确定");
         return;
     }
     await Navigation.PushAsync(new AffirmOrder(), true);
 }