public void Clear_Payment_Form()
 {
     Calendar1.SelectedDate = DateTime.UtcNow;
     Payment_Type.ClearSelection();
     Payment_Amount.Text          = "";
     Payment_Success_message.Text = "";
 }
Beispiel #2
0
        public void Prepare_Order_Form()
        {
            MySqlConnection dbconn = new MySqlConnection(CommonClass.connectionstring);

            dbconn.Open();
            Populate_Products(dbconn);
            Show_Active_Promotion(dbconn);
            AddressBook1.Load_Address(dbconn, true);
            //AddressBook1.Load_Address(dbconn);



            if (Store_Place_Holder.Visible == false)
            {
                PAYMENT_TYPE_ID.Value = WalletPaymentType;
                ORDER_STATUS.Value    = "Open";
            }

            Payment_Received_Flag.ClearSelection();
            Payment_Type.ClearSelection();
            Delivery_Method.ClearSelection();
            Calculate_Grand_Total();
            Payment_Received_Information.Visible = false;
            PaymentControl1.Prepare_Payment_Form(dbconn);
            PaymentControl1.Clear_Cheque_Details();


            dbconn.Close();

            if (OrderLoad != null)
            {
                OrderLoad(this, EventArgs.Empty);
            }
        }