Esempio n. 1
0
        private void btnSelectFee_Click(object sender, EventArgs e)
        {
            Fee     fee     = new Fee();
            Balance balance = new Balance();

            //显示余额
            balance.PatientID = int.Parse(txPatientID2.Text);
            Prepaid prepaid = new Prepaid();

            if (prepaid.FindBalance(balance))
            {
                txBalance1.Text = balance.BalanceMoney.ToString();
            }
            else
            {
                MessageBox.Show("查无此病例");
            }
            //PrintFeeByDate
            fee.PatientID = int.Parse(txPatientID2.Text);
            fee.Time      = dateTimePicker2.Value.ToString("yyyy-MM-dd");
            if (prepaid.ShowFeeByDate(fee))
            {
                dataGridView1.DataSource = fee.FeeTable;
            }
            else
            {
                MessageBox.Show("本日没有交费项目");
            }
        }
Esempio n. 2
0
        /// <summary>
        /// 查询一个人的余额和预交金记录
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnSelectOne1_Click(object sender, EventArgs e)
        {
            Balance        balance        = new Balance();
            PrepaidPayment prepaidpayment = new PrepaidPayment();

            //显示余额
            balance.PatientID = int.Parse(txPatientID3.Text);
            Prepaid prepaid = new Prepaid();

            if (prepaid.FindBalance(balance))
            {
                txBalance2.Text = balance.BalanceMoney.ToString();
            }
            else
            {
                MessageBox.Show("查无此病例");
            }
            //find PrepaidPayment by PatinetID
            prepaidpayment.PatientID = int.Parse(txPatientID3.Text);
            dataGridView2.DataSource = prepaid.FindPrepaidPaymentByPID(prepaidpayment);
        }