/// <summary> /// Email Status Button Click event /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void EmailStatus_Click(object sender, EventArgs e) { ZNode.Libraries.Admin.OrderAdmin _OrderAdmin = new ZNode.Libraries.Admin.OrderAdmin(); ZNode.Libraries.DataAccess.Entities.Order _OrderList = _OrderAdmin.DeepLoadByOrderID(OrderID); SendEmailReceipt(_OrderList); EmailStatus.Enabled = false; }
/// <summary> /// Bind fields /// </summary> private void BindData() { ZNode.Libraries.Admin.OrderAdmin _OrderAdminAccess = new ZNode.Libraries.Admin.OrderAdmin(); ZNode.Libraries.DataAccess.Entities.Order order = _OrderAdminAccess.DeepLoadByOrderID(OrderID); lblCustomerName.Text = order.BillingFirstName + " " + order.BillingLastName; lblTotal.Text = order.Total.Value.ToString("c"); lblTransactionID.Text = order.CardTransactionID; txtAmount.Text = ((decimal)order.Total.Value).ToString("N"); if ((GatewayType)order.PaymentSettingIDSource.GatewayTypeID == GatewayType.NOVA) { txtCardNumber.Width = 170; lblCardNumber.Text = "Enter Credit Card Number"; BindYearList(); string currentMonth = System.DateTime.Now.Month.ToString(); if(currentMonth.Length == 1) currentMonth = "0" + currentMonth; // pre-select item in the list lstMonth.SelectedValue = currentMonth; pnlCreditCardInfo.Visible = true; } }