Ejemplo n.º 1
0
        public ActionResult FormB(MdlFirm obj)
        {
            var sig = UtilityClass.GetUserSession(UtilityClass.UserSession.UserSessions);

            if (sig != null)
            {
                try
                {
                    obj.EnterByUser_ID = sig.UserID;
                    MngFirm mobj    = new MngFirm();
                    MdlFirm FSmodel = new MdlFirm();
                    FSmodel = mobj.InsertFormBAlterName(obj);
                    //  UtilityClass.AddSession(UtilityClass.UserSession.OrgDocId, FSmodel);//Passing Firm Session Model
                    return(RedirectToAction("Index"));
                }
                catch
                {
                    MdlFirm Fmodel = new MdlFirm();
                    MngFirm mobj   = new MngFirm();
                    Fmodel.GetAllOrgDocId = mobj.GetAllOrgDocId(0);
                    return(View(Fmodel));
                }
            }
            else
            {
                return(RedirectToAction("Index", "Login"));
            }
        }
Ejemplo n.º 2
0
        public ActionResult FormE(MdlPartner model)
        {
            var sig = UtilityClass.GetUserSession(UtilityClass.UserSession.UserSessions);

            if (sig != null)
            {
                try
                {
                    model.EnterByUser_ID = sig.UserID;
                    MngFirm    mobj   = new MngFirm();
                    MdlPartner Pmodel = new MdlPartner();

                    long    ID     = mobj.InsertFormEinfo(model);
                    MdlFirm Fmodel = new MdlFirm();
                    Fmodel.OrgDocID = ID;
                    UtilityClass.AddSession(UtilityClass.UserSession.OrgDocId, Fmodel);//Passing Orgdocid to partner Session Model
                    return(RedirectToAction("FormEPartner", "Partner"));
                }
                catch
                {
                    MdlPartner Pmodel = new MdlPartner();
                    MngFirm    mobj   = new MngFirm();
                    Pmodel.GetAllOrgId = mobj.GetAllOrgDocId(0);
                    return(View(Pmodel));
                }
            }
            else
            {
                return(RedirectToAction("Index", "Login"));
            }
        }
Ejemplo n.º 3
0
        public ActionResult DeactivatePartner()
        {
            MdlPartner Pmodel = new MdlPartner();
            MngFirm    mobj   = new MngFirm();

            Pmodel.GetAllOrgId = mobj.GetAllOrgDocId(0);
            return(PartialView("~/Views/Firm/PartialViews/_Deativepartner.cshtml", Pmodel));
        }
Ejemplo n.º 4
0
        public ActionResult NewFormE()
        {
            var sig = UtilityClass.GetUserSession(UtilityClass.UserSession.UserSessions);

            if (sig != null)
            {
                MdlPartner Pmodel = new MdlPartner();
                MngFirm    mobj   = new MngFirm();
                Pmodel.GetAllOrgId = mobj.GetAllOrgDocId(0);
                return(View(Pmodel));
            }
            else
            {
                return(RedirectToAction("Index", "Login"));
            }
        }
Ejemplo n.º 5
0
        public ActionResult FormB()
        {
            var sig = UtilityClass.GetUserSession(UtilityClass.UserSession.UserSessions);

            if (sig != null)
            {
                MdlFirm Fmodel = new MdlFirm();
                MngFirm mobj   = new MngFirm();
                Fmodel.GetAllOrgDocId = mobj.GetAllOrgDocId(0);
                // Fmodel.BankDistrictList = mobj.GetAllDistrics();
                return(View(Fmodel));
            }
            else
            {
                return(RedirectToAction("Index", "Login"));
            }
        }