protected void Page_Load(object sender, EventArgs e) { Service_PlanAgentOrder.PlanAgentOrderClient bll = new Service_PlanAgentOrder.PlanAgentOrderClient(); PlanAgentOrder info = bll.Info(0, GetRequest.GetRequestValue("sn")); bll.Abort(); bll.Close(); Service_SystemModuleSetMeal.SystemModuleSetMealClient setMealBll = new Service_SystemModuleSetMeal.SystemModuleSetMealClient(); string[] setMealIdArr = info.RelationId.Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries); string names = ""; foreach (string idItem in setMealIdArr) { SystemModuleSetMeal setMealInfo = setMealBll.Info(Convert.ToInt32(idItem)); names += setMealInfo.Name + ","; } //info.Price = 0.01m; PayForm pf = new PayForm(); pf.out_trade_no = info.Sn; //订单号 pf.total_fee = info.Price.ToString(); //充值多少 pf.subject = "开通套餐:" + names.Trim(','); //备注 pf.body = names.Trim(','); //标题 pf.GoPay("1"); }
/// <summary> /// This event triggers when the user clicks on the "Make Payment" Button /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void MakePaymentButton_Click(object sender, EventArgs e) { var grandTotal = decimal.Parse(this.grandTotalCashLabel.Text.Remove(0, 2)); var payForm = new PayForm(grandTotal); payForm.Show(); payForm.VisibleChanged += this.PayFormVisibleChanged; }
public LocationDTO(int iD, DateTime entryTime, DateTime?exitTime, PayForm payForm, double value, int clientID, int vehicleID, int parkingSpotID, bool isActive) { ID = iD; EntryTime = entryTime; ExitTime = exitTime; PayForm = payForm; Value = value; ClientID = clientID; VehicleID = vehicleID; ParkingSpotID = parkingSpotID; IsActive = isActive; }
public void execute(Form hander) { PayListForm mf = hander as PayListForm; if (mf != null){ DataRowView dr = mf.listBox1.SelectedItem as DataRowView; if (dr == null) return; //指定的支付类型不在列表之中不显示输入框 PayForm form = new PayForm(dr); form.ShowDialog(); mf.presenter.getTable(); } }
public LocationDTO(int iD, DateTime entryTime, DateTime?exitTime, PayForm payForm, int value, VehicleDTO vehicle, int vehicleID, ParkingSpotDTO parkingSpot, int parkingSpotID, bool isActive) { ID = iD; EntryTime = entryTime; ExitTime = exitTime; PayForm = payForm; Value = value; Vehicle = vehicle; VehicleID = vehicleID; ParkingSpot = parkingSpot; ParkingSpotID = parkingSpotID; IsActive = isActive; }
private void btn13_click(object sender, EventArgs e) // 주문결제 버튼 { if (lv.Items.Count == 0) { MessageBox.Show("상품을 선택해주세요."); return; } PayForm pf = new PayForm(); pf.StartPosition = FormStartPosition.Manual; pf.Location = new Point(parentForm.Location.X + (parentForm.Width / 2) - (pf.Width / 4), parentForm.Location.Y + (parentForm.Height / 2) - (pf.Height / 2)); pf.ShowDialog(); tt(); }
public static void clickOnPayButton(int raceId, DateTime date, string deprtureCity, string arrivalCity, PayForm payForm) { try { User user = dataService.getUser(getMAC()); Ticket boughtTicket = dataService.createTicket(raceId, date, deprtureCity, arrivalCity, user.FullName); dataService.buyTicket(boughtTicket, user.Email); List <Ticket> userTickets = dataService.getUsersTickets(user.Email); view.toInfoForm(payForm, dataService.isAdmin(getMAC()), dataService.isSuperAdmin(getMAC()), userTickets, user); } catch (Exception e) { Console.WriteLine(e.ToString()); } }
public PayFormPresenter(PayForm view) { this.view = view; accountService = new AccountService(); init(); }