コード例 #1
0
        private void SetFormValues()
        {
            ClearForm();
            txtSubTotal.Text            = Math.Round(_subTotal, 2).ToString(F2);
            txtShippingAndHandling.Text = ShippingAndHandling.ToString(F2);
            txtRetailTotal.Text         = Math.Round(_retailTotal, 2).ToString(F2);
            SetEstimatedTaxLabel();
            txtTaxAmount.Text          = Math.Round(_taxAmount, 2).ToString(F2);
            txtBackgroundCheckFee.Text = GetBackgroundCheckFee().ToString(F2);
            textBoxCouponAmt.Text      = _transactionCouponAmount.ToString(F2);
            if (LayawayPaymentCalc != null)
            {
                var bProcedures = new BusinessRulesProcedures(CDS);
                if (bProcedures.IsServiceFeeTaxable(CDS.CurrentSiteId))
                {
                    txtLayawayServiceFee.Text = LayawayPaymentCalc.ServiceFee.ToString(F2);
                }
                else
                {
                    txtLayawayServiceFee.Text = LayawayPaymentCalc.ServiceFeeTotal.ToString(F2);
                }
            }

            customButtonOutTheDoor.Enabled = _subTotal > 0.0m;
            customButtonCoupon.Location    = new Point(customButtonOutTheDoor.Location.X, customButtonOutTheDoor.Location.Y - 118);
        }