Exemplo n.º 1
0
        public Invoice_comments_membership getInvoice_comments(int i)
        {
            CommentRepo c_repo             = new CommentRepo();
            Invoice_comments_membership im = new Invoice_comments_membership
            {
                invoice_obj = invo.getInov(i),
                //  CommentsList =  c_repo.ListComment(i)
            };

            return(im);
        }
Exemplo n.º 2
0
        public void editInvo2(Invoice_comments_membership i)
        {
            CommentRepo c    = new CommentRepo();
            var         invo = getInov(i.invoice_obj.id);

            invo.Act_C_Date   = i.invoice_obj.Act_C_Date;
            invo.Customer_Id  = i.invoice_obj.Customer_Id;
            invo.invoice_no   = i.invoice_obj.invoice_no;
            invo.Issue_Date   = i.invoice_obj.Issue_Date;
            invo.Suspended    = i.invoice_obj.Suspended;
            invo.Amount       = i.invoice_obj.Amount;
            invo.Collected    = i.invoice_obj.Collected;
            invo.Collect_Date = i.invoice_obj.Collect_Date;
            invo.Comments     = i.invoice_obj.Comments;
            invo.Customer_Id  = i.invoice_obj.Customer_Id;
            //if(i.comment_obj.comment1 != null)
            //{
            //    db.Comments.Add(i.comment_obj);
            //}
            db.SaveChanges();
        }
Exemplo n.º 3
0
 public ActionResult EditInvoice(Invoice_comments_membership i)
 {
     inv_Dsl.editInvoice2(i);
     return(RedirectToAction("Index2"));
 }
Exemplo n.º 4
0
 public void editInvoice2(Invoice_comments_membership i)
 {
     invo.editInvo2(i);
 }