Beispiel #1
0
        private void LoadRecord()
        {
            Int64            iID          = Convert.ToInt64(Common.Decrypt(Request.QueryString["GJournalid"], Session.SessionID));
            GJournals        clsGJournals = new GJournals();
            GJournalsDetails clsDetails   = clsGJournals.Details(iID);

            clsGJournals.CommitAndDispose();

            lblGJournalID.Text        = clsDetails.GJournalID.ToString();
            txtRemarks.Text           = clsDetails.Particulars;
            lblTotalDebitAmount.Text  = clsDetails.TotalDebitAmount.ToString("#,##0.#0");
            lblTotalCreditAmount.Text = clsDetails.TotalCreditAmount.ToString("#,##0.#0");
            lblTotalAmount.Text       = Convert.ToDecimal(clsDetails.TotalDebitAmount - clsDetails.TotalCreditAmount).ToString("#,##0.#0");

            LoadItems();
        }
Beispiel #2
0
        private void SaveRecord(string Sender)
        {
            ComputeGJournal(Sender);

            GJournalsDetails clsDetails = new GJournalsDetails();

            clsDetails.GJournalID        = Convert.ToInt64(lblGJournalID.Text);
            clsDetails.Particulars       = txtRemarks.Text;
            clsDetails.TotalDebitAmount  = Convert.ToDecimal(lblTotalDebitAmount.Text);
            clsDetails.TotalCreditAmount = Convert.ToDecimal(lblTotalCreditAmount.Text);

            GJournals clsGJournals = new GJournals();

            clsGJournals.Update(clsDetails);

            clsGJournals.CommitAndDispose();
        }