Exemple #1
0
 private void AutoFillBorrower()
 {
     oBorrower = new DataAccess.Borrower();
     foreach (DataRow row in oBorrower.GetRecords(eVariable.FIND_BORROWER.BORROWER_ID, oMBorrower.PERSON_ID).Rows)
     {
         txtBorrowerID.Text = row[0].ToString();
         txtFulllname.Text  = row[1].ToString() + " " + row[2].ToString() + " " + row[3].ToString();
     }
     AutoFillBook();
 }
Exemple #2
0
 public void LoadBorrower()
 {
     try
     {
         oBorrower = new DataAccess.Borrower();
         dgExport.Rows.Clear();
         oFilterBorrower = ePublicVariable.eVariable.FIND_BORROWER.FIRST_NAME;
         BorrowerStructure();
         foreach (DataRow row in oBorrower.GetRecords(oFilterBorrower, "").Rows)
         {
             dgExport.Rows.Add(row["BORROWER_ID"], row["FIRST_NAME"], row["MIDDLE_NAME"], row["LAST_NAME"], row["DOB"], row["AGE"], row["CONTACT_NO"], row["ADDRESS"], row["STATUS"], row["PROFILE_PIC"]);
         }
     }
     catch (Exception ex)
     {
     }
 }
Exemple #3
0
        public void LoadBorrower()
        {
            try
            {
                oBorrower = new DataAccess.Borrower();
                dgDetails.Rows.Clear();
                eVariable.DisableGridColumnSort(dgDetails);
                foreach (DataRow row in oBorrower.GetRecords(oFilterBorrower, tbxSearch.Text).Rows)
                {
                    dgDetails.Rows.Add(row["BORROWER_ID"], row["FIRST_NAME"], row["MIDDLE_NAME"], row["LAST_NAME"], row["DOB"], row["AGE"], row["CONTACT_NO"], row["ADDRESS"], row["STATUS"], row["PROFILE_PIC"]);
                }

                lblTotalRecords.Text = dgDetails.Rows.Count.ToString();
            }
            catch (Exception ex)
            {
            }
        }