Beispiel #1
0
        //会员打折
        private void memberTool_Click(object sender, EventArgs e)
        {
            double money_pre = Convert.ToDouble(moneyPayable.Text);
            MemberPromotionOptionForm memberPromotionOptionForm = new MemberPromotionOptionForm(m_Seats);

            if (memberPromotionOptionForm.ShowDialog() != DialogResult.OK)
            {
                return;
            }

            var dc = new BathDBDataContext(LogIn.connectionString);

            m_Member = memberPromotionOptionForm.m_Member;
            double money = BathClass.get_rooms_expenses(dc, m_Seats, LogIn.connectionString);

            moneyPayable.Text = money.ToString();
            discount_money    = money_pre - money;

            dgvExpense_show(dc);
        }
        //会员打折
        private void memberTool_Click(object sender, EventArgs e)
        {
            double money_pre = Convert.ToDouble(moneyPayable.Text);
            MemberPromotionOptionForm memberPromotionOptionForm = new MemberPromotionOptionForm(m_Seats);
            if (memberPromotionOptionForm.ShowDialog() != DialogResult.OK)
                return;

            //var dc = new BathDBDataContext(LogIn.connectionString);
            m_Member = memberPromotionOptionForm.m_Member;

            dgvExpense_show();
            double money = Convert.ToDouble(moneyPayable.Text);
            moneyPayable.Text = money.ToString();
            discount_money = money_pre - money;
        }