Ejemplo n.º 1
0
        public JsonResult InsRights(int iGroup, int iUser, bool View, bool Add, bool Del, bool Acc, bool Edit)
        {
            try
            {
                clsSubmitModel oSubmit = new clsSubmitModel();

                clsRights oProp = new clsRights();
                oProp.mencode = iGroup;
                oProp.menuser = iUser;
                oProp.menview = View;
                oProp.menaddi = Add;
                oProp.menedit = Edit;
                oProp.mendele = Del;
                oProp.menacce = Acc;

                oSubmit.InsRights(oProp);

                var Result = "Saved Successfully .";
                return(Json(Result, JsonRequestBehavior.AllowGet));
            }
            catch (Exception ex)
            {
                return(Json(ex.Message, JsonRequestBehavior.AllowGet));
            }
        }
Ejemplo n.º 2
0
        public ActionResult GetGroupUser(string sGroupID)
        {
            clsRights     frm  = new clsRights();
            DDLController oDDL = new DDLController();

            frm.lstGrpUser = oDDL.getGroupUser(sGroupID);
            return(Json(frm, JsonRequestBehavior.AllowGet));
        }
Ejemplo n.º 3
0
        public ActionResult Rights()
        {
            submitData oCon = new submitData();
            clsRights  frm  = new clsRights();

            DDLController oDDL = new DDLController();

            frm.lstGrpMenu = oDDL.getMasterMenu();
            frm.lstUser    = oDDL.getUser();
            frm.lstGrpUser = oDDL.getGroupUser();
            return(View(frm));
        }