Ejemplo n.º 1
0
        private void btnM3_check_Click(object sender, EventArgs e)
        {
            try
            {
                int    memID = (string.IsNullOrEmpty(txtMF_memID.Text) ? 0 : int.Parse(txtMF_memID.Text));
                string nic   = txtmfNIC.Text.ToString();
                txtMFee_name.Text.ToString();

                Buisness_Logic.feeRepository fr = new Buisness_Logic.feeRepository();

                DataTable dt = fr.search_aerobic_fee(memID, nic);

                if (dt.Rows.Count > 0)
                {
                    txtMF_memID.Text         = dt.Rows[0]["memberID"].ToString();
                    txtMFee_name.Text        = dt.Rows[0]["name"].ToString();
                    txtmfNIC.Text            = dt.Rows[0]["nic"].ToString();;
                    txtMF_lastValidDate.Text = dt.Rows[0]["valde_date"].ToString();
                    txtlstPaidDate.Text      = dt.Rows[0]["recentPayment_date"].ToString();
                    txtLastpaidtime.Text     = dt.Rows[0]["recentPayment_time"].ToString();
                    txtMF_amount.Text        = dt.Rows[0]["recentPayment"].ToString();
                    txtfservice.Text         = dt.Rows[0]["service"].ToString();
                }
            }
            catch (Exception ff)
            {
                throw;
            }
        }