Ejemplo n.º 1
0
        public ActionResult Create(MdlProject objform)
        {
            MdlProject model  = new MdlProject();
            MngInfo    ObjApp = new MngInfo();

            if (sig != null)
            {
                try
                {
                    objform.EnteredByUser_ID = sig.UserID;
                    ObjApp.AddNewSProjectofOrg(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"));
            }
        }
Ejemplo n.º 2
0
        public ActionResult Create()
        {
            MdlProject model  = new MdlProject();
            MngInfo    ObjApp = new MngInfo();

            model.GetAllOrg_ID = ObjApp.GetAllOrgIDNName(0);
            //model.GetRenewalReport_ID = ObjApp.GetRenewalReportsofOrg();
            return(View(model));
        }
Ejemplo n.º 3
0
        public ActionResult Edit(long id)
        {
            MdlProject obj = new MdlProject();

            if (sig != null)
            {
                obj = mobj.GetProjecttoEdit(id);
                obj.GetAllOrg_ID = mobj.GetAllOrgIDNName(obj.Org_ID);
                return(View(obj));
            }
            else
            {
                return(RedirectToAction("Index", "Login"));
            }
        }
Ejemplo n.º 4
0
 public ActionResult Edit(MdlProject Wmodel)
 {
     if (sig != null)
     {
         try
         {
             // TODO: Add update logic here
             Wmodel.ModifyByUser_ID = sig.UserID;
             mobj.UpdateProjectofOrg(Wmodel);
             return(RedirectToAction("Index"));
         }
         catch
         {
             return(View());
         }
     }
     else
     {
         return(RedirectToAction("Index", "Login"));
     }
 }