예제 #1
0
        public ActionResult Create(MdlFund objform)
        {
            MdlFund model  = new MdlFund();
            MngInfo ObjApp = new MngInfo();

            if (sig != null)
            {
                try
                {
                    objform.EnteredByUser_ID = sig.UserID;
                    ObjApp.AddNewFundSourceofOrg(objform);
                    TempData["td_orgid"] = objform.Org_ID;
                    return(RedirectToAction("Index"));
                }
                catch
                {
                    model.GetAllOrg_ID = ObjApp.GetAllOrgIDNName(0);
                    //model.GetRenewalReport_ID = ObjApp.GetRenewalReportsofOrg();
                    return(View(model));
                }
            }
            else
            {
                return(RedirectToAction("Index", "Login"));
            }
        }
예제 #2
0
        // GET: Fund
        public ActionResult Index()
        {
            List <MdlFund> modellist = new List <MdlFund>();
            MngInfo        obj       = new MngInfo();

            modellist = obj.GetAllFundsofOrg(Convert.ToInt64(TempData["td_orgid"]));
            return(View(modellist));
        }
예제 #3
0
        public ActionResult Create()
        {
            MdlFund model  = new MdlFund();
            MngInfo ObjApp = new MngInfo();

            model.GetAllOrg_ID = ObjApp.GetAllOrgIDNName(0);
            //model.GetRenewalReport_ID = ObjApp.GetRenewalReportsofOrg();
            return(View(model));
        }
예제 #4
0
        public ActionResult Edit(long id)
        {
            MdlAsset obj = new MdlAsset();

            mobj = new MngInfo();
            if (sig != null)
            {
                obj = mobj.GetAssettoEdit(id);
                obj.GetAllOrg_ID = mobj.GetAllOrgIDNName(obj.Org_ID);
                return(View(obj));
            }
            else
            {
                return(RedirectToAction("Index", "Login"));
            }
        }
예제 #5
0
 public ActionResult Edit(MdlAsset Wmodel)
 {
     if (sig != null)
     {
         try
         {
             // TODO: Add update logic here
             mobj = new MngInfo();
             Wmodel.ModifyByUser_ID = sig.UserID;
             mobj.UpdateAssetofOrg(Wmodel);
             return(RedirectToAction("Index"));
         }
         catch
         {
             return(View());
         }
     }
     else
     {
         return(RedirectToAction("Index", "Login"));
     }
 }