Example #1
0
        public void ValidateRole()
        {
            var roles = ((wcf_auth.GeneralUserProfile)SessionCheck.Check(Response, Session["userprofile"])).mRoleList;
            var role  = "ADM.PKBL.KotaKab.View";

            if (!RoleCheck.CheckRoleView(roles, role))
            {
                Response.Redirect("~/Default.aspx");
            }
        }
Example #2
0
        private void roleAuth()
        {
            var  userRoles = ((wcf_auth.GeneralUserProfile)SessionCheck.Check(Response, Session["userprofile"])).mRoleList;
            bool insert    = RoleCheck.CheckRoleView(userRoles, "PK.Penilaian.Add");


            ((GridViewCommandColumn)gvPenilaianSurvey.Columns["opr"]).ShowNewButton = insert;


            if (!RoleCheck.CheckRoleView(userRoles, "PK.Penilaian.View"))
            {
                Response.Redirect("~/Default.aspx");
            }
        }
Example #3
0
        private void roleAuth()
        {
            var  userRoles = ((wcf_auth.GeneralUserProfile)SessionCheck.Check(Response, Session["userprofile"])).mRoleList;
            bool insert    = RoleCheck.CheckRoleView(userRoles, "ADM.PKBL.JenisKreditMitra.Add");
            bool edit      = RoleCheck.CheckRoleView(userRoles, "ADM.PKBL.JenisKreditMitra.Edit");
            bool delete    = RoleCheck.CheckRoleView(userRoles, "ADM.PKBL.JenisKreditMitra.Delete");

            ((GridViewCommandColumn)gvJenisKreditKemitraan.Columns["opr"]).ShowNewButtonInHeader = insert;
            ((GridViewCommandColumn)gvJenisKreditKemitraan.Columns["opr"]).ShowEditButton        = edit;
            ((GridViewCommandColumn)gvJenisKreditKemitraan.Columns["opr"]).ShowDeleteButton      = delete;
            if (!RoleCheck.CheckRoleView(userRoles, "ADM.PKBL.JenisKreditMitra.View"))
            {
                Response.Redirect("~/Default.aspx");
            }
        }
Example #4
0
        private void roleAuth()
        {
            var  userRoles = ((wcf_auth.GeneralUserProfile)SessionCheck.Check(Response, Session["userprofile"])).mRoleList;
            bool insert    = RoleCheck.CheckRoleView(userRoles, "PK.Penerimaan.Add");
            bool edit      = RoleCheck.CheckRoleView(userRoles, "PK.Penerimaan.Edit");
            bool delete    = RoleCheck.CheckRoleView(userRoles, "PK.Penerimaan.Delete");
            bool view      = RoleCheck.CheckRoleView(userRoles, "PK.Penerimaan.View");

            if (view == false)
            {
                Response.Redirect("~/Default.aspx");
            }

            ((GridViewCommandColumn)gvPenerimaanProposal.Columns["opr"]).ShowEditButton = edit;
        }
Example #5
0
        private void roleAuth()
        {
            var  userRoles = ((wcf_auth.GeneralUserProfile)SessionCheck.Check(Response, Session["userprofile"])).mRoleList;
            bool insert    = RoleCheck.CheckRoleView(userRoles, "ADM.AKUN.NoAkun.Add");
            bool edit      = RoleCheck.CheckRoleView(userRoles, "ADM.AKUN.NoAkun.Edit");
            bool view      = RoleCheck.CheckRoleView(userRoles, "ADM.AKUN.NoAkun.View");
            bool delete    = RoleCheck.CheckRoleView(userRoles, "ADM.AKUN.NoAkun.Delete");

            if (view == false)
            {
                Response.Redirect("~/Default.aspx");
            }

            ((GridViewCommandColumn)gvNomorAkun.Columns["opr"]).ShowNewButtonInHeader = insert;
            ((GridViewCommandColumn)gvNomorAkun.Columns["opr"]).ShowEditButton        = edit;
        }
        private void roleAuth()
        {
            var  userRoles = ((wcf_auth.GeneralUserProfile)SessionCheck.Check(Response, Session["userprofile"])).mRoleList;
            bool insert    = RoleCheck.CheckRoleView(userRoles, "PK.Persetujuan.Add");
            bool edit      = RoleCheck.CheckRoleView(userRoles, "PK.Persetujuan.Edit");
            bool view      = RoleCheck.CheckRoleView(userRoles, "PK.Persetujuan.View");

            ((GridViewCommandColumn)gvPersetujuanSurvey.Columns["opr"]).ShowNewButton = insert;
            //((GridViewCommandColumn)gvPersetujuanSurvey.Columns["Opr."]).sho = edit;


            if (view == false)
            {
                Response.Redirect("~/Default.aspx");
            }
        }
Example #7
0
        private void roleAuth()
        {
            var  userRoles = ((wcf_auth.GeneralUserProfile)Session["userprofile"]).mRoleList;
            bool insert    = RoleCheck.CheckRoleView(userRoles, "AKUN.BL.Penyaluran.Add");
            bool edit      = RoleCheck.CheckRoleView(userRoles, "AKUN.BL.Penyaluran.Edit");
            bool view      = RoleCheck.CheckRoleView(userRoles, "AKUN.BL.Penyaluran.View");


            ((GridViewCommandColumn)gvPenyaluran.Columns["Opr."]).CustomButtons["Detail"].Visibility = (insert) ?  GridViewCustomButtonVisibility.AllDataRows : GridViewCustomButtonVisibility.Invisible;
            ((GridViewCommandColumn)gvPenyaluran.Columns["Opr."]).CustomButtons["Detail"].Visibility = (edit) ? GridViewCustomButtonVisibility.AllDataRows : GridViewCustomButtonVisibility.Invisible;


            if (view == false)
            {
                Response.Redirect("~/Default.aspx");
            }
        }
Example #8
0
        private void roleAuth()
        {
            var  userRoles = ((wcf_auth.GeneralUserProfile)SessionCheck.Check(Response, Session["userprofile"])).mRoleList;
            bool view      = RoleCheck.CheckRoleView(userRoles, "AKUN.TransferDanaBank.View");

            //((GridViewCommandColumn)gvPermohonan.Columns["opr"]).ShowNewButton = insert;
            //((GridViewCommandColumn)gvBankCOA.Columns["Opr."]).ShowEditButton = edit;
            // ((GridViewDataColumn)gvPenyaluran.Columns["Opr."]).ShowEditButton = edit;



            //btnSubmit.Visible = insert;

            if (view == false)
            {
                Response.Redirect("~/Default.aspx");
            }
            //btnSubmit.Visible = insert;
        }