示例#1
0
        public void initializeTrans()
        {
            frmLibSoft mainForm  = new frmLibSoft();
            DataSet    dsLoan    = new DataSet();
            bool       bMemAvail = false;

            dsLoan = returnLoanDetails(TxtBookId.Text);
            //if (dsLoan.Tables[0].Rows.Count > 1)
            //{
            //}
            if (dsLoan.Tables[0].Rows.Count > 0 && dsLoan.Tables[0].Rows[0]["ReturnDate"].ToString() == "")
            {
                //dateReturn.Checked = false;
                mainForm.TxtMembers.Text = dsLoan.Tables[0].Rows[0]["MemberID"].ToString();
                setMemName();
                //mainForm.TxtFine.Text = dsLoan.Tables[0].Rows[0]["Fine"].ToString();
                //mainForm.TxtTransRate.Text = dsLoan.Tables[0].Rows[0]["LendRate"].ToString();
                //mainForm.TxtBal.Text = dsLoan.Tables[0].Rows[0]["LibBal"].ToString();
                //mainForm.TxtRenewal.Text = dsLoan.Tables[0].Rows[0]["RenewalDays"].ToString();
            }
            else
            {
                TxtMembers.Text    = "";
                TxtMemberName.Text = "";
                //TxtTransRate.Text = "0";
                //TxtFine.Text = "0";
            }
        }
示例#2
0
 public LibBookSearch(frmLibSoft frmMain)
 {
     frmMainRef = frmMain;
 }