示例#1
0
        public ActionResult UpdateIndentBudget(int?Id)
        {
            IndentBudgetViewModel model = new IndentBudgetViewModel();

            model.Id = Id ?? 0;
            return(View(model));
        }
示例#2
0
        public ActionResult AddIndentBudget()
        {
            IndentBudgetViewModel model = new IndentBudgetViewModel();

            model.Id = 0;
            return(View(model));
        }
示例#3
0
        public JsonResult GetIndentBudgetById(int Id)
        {
            IndentBudgetViewModel model = new IndentBudgetViewModel();

            Data.Models.IndentBudget objIB = this._IndentBudgetServices.GetForId(Id);

            if (objIB != null)
            {
                model.Id            = objIB.Id;
                model.BudgetType    = objIB.BudgetType;
                model.BudgetCode    = objIB.BudgetCode;
                model.Amount        = objIB.Amount;
                model.IsActive      = objIB.IsActive;
                model.FinancialYear = objIB.FinancialYear;
            }
            return(Json(model, JsonRequestBehavior.AllowGet));
        }