Ejemplo n.º 1
0
 private void btnReturnBook_Click(object sender, EventArgs e)
 {
     Forms.frmProcessReturnBook oFrm = new frmProcessReturnBook(oMBorrower);
     oFrm.ShowDialog();
     Close();
 }
Ejemplo n.º 2
0
        private void btnContinue_Click(object sender, EventArgs e)
        {
            Boolean bSelected = false;

            foreach (var oData in oMRecordList)
            {
                if (Convert.ToBoolean(oData.BFLAG) == true)
                {
                    bSelected = true;
                }
            }

            if (iGridControl.Visible)
            {
                oFrmMsgBox = new frmMessageBox(eVariable.TransactionMessage.PLEASE_CLOSE_THE_ISBN_PANEL.ToString().Replace("_", " "));
                oFrmMsgBox.m_MessageType = frmMessageBox.MESSAGE_TYPE.INFO;
                oFrmMsgBox.ShowDialog();
                return;
            }

            if (bSelected == false)
            {
                oFrmMsgBox = new frmMessageBox(eVariable.TransactionMessage.PLEASE_SELECT_A_RECORD.ToString().Replace("_", " "));
                oFrmMsgBox.m_MessageType = frmMessageBox.MESSAGE_TYPE.INFO;
                oFrmMsgBox.ShowDialog();
                return;
            }

            oMTransactionList = new List <Model.Transaction>();
            foreach (var oData in oMRecordList)
            {
                oMTransaction              = new Model.Transaction();
                oMTransaction.BOOK_ID      = oData.BOOK_ID;
                oMTransaction.TITLE        = oData.TITLE;
                oMTransaction.SUBJECT      = oData.SUBJECT;
                oMTransaction.CATEGORY     = oData.CATEGORY;
                oMTransaction.AUTHOR       = oData.AUTHOR;
                oMTransaction.PUBLISH_DATE = oData.PUBLISH_DATE;
                oMTransaction.LOCATION     = oData.LOCATION;
                oMTransaction.BOOK_PRICE   = oData.BOOK_PRICE;
                oMTransaction.RENT_PRICE   = oData.RENT_PRICE;
                oMTransaction.DUE_INTEREST = Convert.ToDouble(oData.DUE_INTEREST);
                oMTransaction.LD_INTEREST  = Convert.ToDouble(oData.LD_INTEREST);
                oMTransaction.TOTAL_QTY    = oData.TOTAL_QTY;
                oMTransaction.TOTAL_DAYS   = oData.TOTAL_DAYS;
                oMTransaction.ADDED_DATE   = oData.ADDED_DATE;
                oMTransaction.BOOK_NO      = oData.BOOK_NO;
                oMTransaction.ISBN_NUMBER  = oData.ISBN_NUMBER;
                oMTransaction.BFLAG        = oData.BFLAG;



                #region Borrower
                oMTransaction.PERSON_ID   = oData.PERSON_ID;
                oMTransaction.FIRST_NAME  = oData.FIRST_NAME;
                oMTransaction.MIDDLE_NAME = oData.MIDDLE_NAME;
                oMTransaction.LAST_NAME   = oData.LAST_NAME;
                #endregion



                oMTransactionList.Add(oMTransaction);
            }

            this.Dispose();
            Forms.frmProcessReturnBook oFrm = new frmProcessReturnBook(oMTransactionList);
            oFrm.ShowDialog();
        }