예제 #1
0
        public ActionResult JVManual(string documentNo)
        {
            GLJournal gljournal = new GLJournal();

            if (documentNo == Utility.NEWRECORD)
            {
                gljournal.DocumentDate     = DateTime.Now.Date;
                gljournal.GLJournalDetails = new List <GLJournalDetail>();
            }
            else
            {
                gljournal = new NetStock.BusinessFactory.GLJournalBO().GetGLJournal(new GLJournal {
                    BranchID = Utility.SsnBranch, DocumentNo = documentNo
                });
            }
            gljournal.AccountCodeList = Utility.GetAccountCodeItemList();
            gljournal.DebitCreditList = Utility.GetLookupItemList("DebitCredit");

            return(View("JVManual", gljournal));
        }
예제 #2
0
 public bool DeleteGLJournal(GLJournal item)
 {
     return(GLJournalDAL.Delete(item));
 }
예제 #3
0
 public GLJournal GetGLJournal(GLJournal item)
 {
     return((GLJournal)GLJournalDAL.GetItem <GLJournal>(item));
 }
예제 #4
0
 public bool SaveGLJournal(GLJournal newItem)
 {
     return(GLJournalDAL.Save(newItem));
 }