예제 #1
0
        public ActionResult OutputVATInvoiceConfigGridViewPartialDelete(System.Int32 ID)
        {
            var model = OutputVATInvoiceConfigList.GetData();

            if (ID >= 0)
            {
                try
                {
                    OutputVATInvoiceConfigList.DeleteItem(ID);
                }
                catch (Exception e)
                {
                    ViewData["EditError"] = e.Message;
                }
            }
            return(PartialView("_OutputVATInvoiceConfigGridViewPartial", model));
        }
예제 #2
0
        public ActionResult OutputVATInvoiceConfigGridViewPartialUpdate(MVC.Areas.Accounting.Models.Configuration.APIOutputVATInvoiceConfig item)
        {
            var model = OutputVATInvoiceConfigList.GetData();

            if (ModelState.IsValid)
            {
                try
                {
                    OutputVATInvoiceConfigList.UpdateItem(item);
                }
                catch (Exception e)
                {
                    ViewData["EditError"] = e.Message;
                }
            }
            else
            {
                ViewData["EditError"] = "Please, correct all errors.";
            }
            return(PartialView("_OutputVATInvoiceConfigGridViewPartial", model));
        }
예제 #3
0
        public ActionResult OutputVATInvoiceConfigGridViewPartial()
        {
            var model = OutputVATInvoiceConfigList.GetData();

            return(PartialView("_OutputVATInvoiceConfigGridViewPartial", model));
        }