public void HakAkses()
    {
        if (Session["userid"] is object)
        {
            userid = Session["userid"].ToString();

            if (Session["groups"] is object)
            {
                groups = Session["groups"].ToString();

            }

        }

        if (!(Session["userid"] is object))
        {
            Response.Write("<script language=\"javascript\" type=\"text/javascript\">");
            Response.Write("alert('Session sudah habis. Silakan login kembali.');");
            Response.Write("location.href = '../login.aspx';");
            Response.Write("</script>");
        }

        ALMIS.ExecuteSTP eSTP = new ALMIS.ExecuteSTP();
        eSTP.Datas();
        DataSet ds = new DataSet();
        ds = eSTP.List8("P_MENU", "CHA", "", groups, "Pra Registrasi", "", "", "", "");
        dt = ds.Tables[0];

        PraRegistrasiView = dt.Rows[0]["VIEWXXX"].ToString(); //0
        PraRegistrasiEdit = dt.Rows[0]["EDITXXX"].ToString(); //1
        PraRegistrasiDelete = dt.Rows[0]["DELETEX"].ToString(); //2
        PraRegistrasiAssign = dt.Rows[0]["ASSIGNX"].ToString(); //3

        dt.Dispose();

        if (PraRegistrasiView.ToString() != "1" )
        {
            if (groups.ToString() != "1")
            {

                Response.Write("<script language=\"javascript\" type=\"text/javascript\">");
                //Response.Write("window.location.reload()");
                Response.Write("alert('Anda Tidak Memiliki Akses Untuk Melihat Modul Ini');");
                Response.Write("location.href = '../Pages/home.aspx';");
                Response.Write("</script>");
            }
        }
    }
    public void HakAkses()
    {
        var Param1 = "";

        bool cek = true;
        if (cek && (Request.Params["param1"] is object))
        {
            Param1 = Request.Params["param1"].ToString();
        }
        else
        {
            Param1 = "";
        }

        if (Session["userid"] is object)
        {
            userid = Session["userid"].ToString();

            if (Session["lanjut"] is object)
            {
                lanjut = Session["lanjut"].ToString();
            }

            if (Session["except"] is object)
            {
                except = Session["except"].ToString();
            }
            if (Session["groups"] is object)
            {
                groups = Session["groups"].ToString();
            }

        }

        if (!(Session["userid"] is object))
        {
            Response.Write("<script language=\"javascript\" type=\"text/javascript\">");
            Response.Write("alert('Session sudah habis. Silakan login kembali.');");
            Response.Write("location.href = '../login.aspx';");
            Response.Write("</script>");
        }

        ALMIS.ExecuteSTP eSTP = new ALMIS.ExecuteSTP();
        eSTP.Datas();
        DataSet ds = new DataSet();

        ds = eSTP.List8("P_MENU", "CHA", "", groups, "Pembayaran", "", "", "", "");
        dt = ds.Tables[0];

        PembayaranView = dt.Rows[0]["VIEWXXX"].ToString(); //0
        PembayaranEdit = dt.Rows[0]["EDITXXX"].ToString(); //1
        PembayaranDelete = dt.Rows[0]["DELETEX"].ToString(); //2
        PembayaranAssign = dt.Rows[0]["ASSIGNX"].ToString(); //3

        dt.Dispose();

        if (Param1 == "")
        {

            Response.Write("<script language=\"javascript\" type=\"text/javascript\">");
            Response.Write("alert('Tidak Ada Aksi Yang Ada Pilih');");
            Response.Write("location.href = '../Pages/home.aspx';");
            Response.Write("</script>");

        }

        else if (Param1 == "V")
        {
            if (PembayaranView.ToString() != "1")
            {
                if (groups.ToString() != "1")
                {
                    Response.Write("<script language=\"javascript\" type=\"text/javascript\">");
                    Response.Write("alert('Anda Tidak Memiliki Akses Untuk Melihat Di Modul Ini');");
                    Response.Write("location.href = '../Pages/home.aspx';");
                    Response.Write("</script>");
                }
            }
        }

        else if (Param1 == "E")
        {
            if (PembayaranEdit.ToString() != "1")
            {
                if (groups.ToString() != "1")
                {
                    Response.Write("<script language=\"javascript\" type=\"text/javascript\">");
                    Response.Write("alert('Anda Tidak Memiliki Akses Untuk Edit Di Modul Ini');");
                    Response.Write("location.href = '../Pages/home.aspx';");
                    Response.Write("</script>");
                }
            }
        }

        else if (Param1.ToString() == "D")
        {
            if (PembayaranDelete.ToString() != "1")
            {
                if (groups.ToString() != "1")
                {
                    Response.Write("<script language=\"javascript\" type=\"text/javascript\">");
                    Response.Write("alert('Anda Tidak Memiliki Akses Untuk Delete Di Modul Ini');");
                    Response.Write("location.href = '../Pages/home.aspx';");
                    Response.Write("</script>");
                }
            }
        }

        else
        {
            Response.Write("<script language=\"javascript\" type=\"text/javascript\">");
            Response.Write("alert('Aksi Yang Anda Cari Tidak Ditemukan');");
            Response.Write("location.href = '../Pages/home.aspx';");
            Response.Write("</script>");
        }
    }
示例#3
0
    private bool ServiceSelect(string sm)
    {
        switch (sm)
        {
            case "HA":

                if (Session["userid"] is object)
                {
                    userid = Session["userid"].ToString();

                }

                //Response.ContentType = "text/plain";
                var param1 = Request.Params["param1"].ToString();
                var param2 = Request.Params["param2"].ToString();
                var param3 = Request.Params["param3"].ToString();
                var param4 = Request.Params["param4"].ToString();
                var param5 = Request.Params["param5"].ToString();
                var param6 = Request.Params["param6"].ToString();
                var param7 = Session["userid"].ToString();
                var param8 = Request.Params["param8"].ToString();

                ALMIS.ExecuteSTP eSTP = new ALMIS.ExecuteSTP();
                eSTP.Datas();
                //DataSet ds = new DataSet();
                eSTP.save8("P_MENU", param1, param2, param3, param4, param5, param6, userid, param8);
                //Response.End();
                return false;

            case "L":

                var param1L = Request.Params["param1"].ToString();
                var param2L = Request.Params["param2"].ToString();
                var param3L = Request.Params["param3"].ToString();

                ALMIS.ExecuteSTP eSTP_L = new ALMIS.ExecuteSTP();
                eSTP_L.Datas();
                DataSet ds_L = new DataSet();
                ds_L = eSTP_L.List8("P_MENU", param1L, param2L, param3L, "", "", "", "", "");

                dt = ds_L.Tables[0];

                Response.ContentType = "application/xhtml+xml";
                Response.Write("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
                Response.Write("<rows>");

                for (int i = 0; i < dt.Rows.Count; i++)
                {

                    Random r = new Random();
                    Response.Write("<row id=\"" + (i + 1).ToString() + "\">");
                    Response.Write("<cell>" + (i + 1).ToString() + "</cell>"); // Untuk Membuat Angka
                    Response.Write("<cell>" + RemoveWhiteSpace(dt.Rows[i]["Modul"].ToString()) + "</cell>");

                    Response.Write("<cell>" + RemoveWhiteSpace(dt.Rows[i]["Ad"].ToString()) + "</cell>");
                    Response.Write("<cell>" + RemoveWhiteSpace(dt.Rows[i]["Edit"].ToString()) + "</cell>");
                    Response.Write("<cell>" + RemoveWhiteSpace(dt.Rows[i]["Delet"].ToString()) + "</cell>");
                    Response.Write("<cell>" + RemoveWhiteSpace(dt.Rows[i]["Vie"].ToString()) + "</cell>");
                    Response.Write("<cell>" + RemoveWhiteSpace(dt.Rows[i]["Prin"].ToString()) + "</cell>");
                    Response.Write("</row>");
                }
                Response.Write("</rows>");
                dt.Dispose();
                Response.End();
                Response.End();

                return false;

            default:
                Response.ContentType = "text/plain";
                Response.End();
                return true;
        }
    }
    public void HakAkses()
    {
        if (Session["userid"] is object)
        {
            userid = Session["userid"].ToString();

            if (Session["groups"] is object)
            {
                groups = Session["groups"].ToString();

            }

        }

        if (!(Session["userid"] is object))
        {
            Response.Write("<script language=\"javascript\" type=\"text/javascript\">");
            Response.Write("alert('Session sudah habis. Silakan login kembali.');");
            Response.Write("location.href = '../Pages/login.aspx';");
            Response.Write("</script>");
        }

        ALMIS.ExecuteSTP eSTP = new ALMIS.ExecuteSTP();
        eSTP.Datas();
        DataSet ds = new DataSet();

        var Param1 = "";

        bool cek = true;
        if (cek && (Request.Params["param1"] is object))
        {
            Param1 = Request.Params["param1"].ToString();
        }
        else
        {
            Param1 = "";
        }

        ds = eSTP.List8("P_MENU", "CHA", "", groups, "", "", "", "", "");
        dt = ds.Tables[0];

        MasterIdentitasView = dt.Rows[11]["MasterIdentitas"].ToString(); //0
        MasterIdentitasEdit = dt.Rows[11]["MasterIdentitasEdit"].ToString(); //1
        MasterIdentitasDelete = dt.Rows[11]["MasterIdentitasDelete"].ToString(); //2
        MasterIdentitasAssign = dt.Rows[11]["MasterIdentitasAssign"].ToString(); //3

        dt.Dispose();

        if (Param1 == "")
        {
            if (MasterIdentitasView.ToString() != "1")
            {
                if (groups.ToString() != "1")
                {
                    Response.Write("<script language=\"javascript\" type=\"text/javascript\">");
                    Response.Write("alert('Anda Tidak Memiliki Akses Untuk Menambah Di Modul Ini');");
                    Response.Write("location.href = '../Pages/home.aspx';");
                    Response.Write("</script>");
                }
            }
        }

        else if (Param1 == "F")
        {
            if (MasterIdentitasView.ToString() != "1")
            {
                if (groups.ToString() != "1")
                {
                    Response.Write("<script language=\"javascript\" type=\"text/javascript\">");
                    Response.Write("alert('Anda Tidak Memiliki Akses Untuk Melihat Di Modul Ini');");
                    Response.Write("location.href = '../Pages/home.aspx';");
                    Response.Write("</script>");
                }
            }
        }

        else if (Param1 == "E")
        {
            if (MasterIdentitasEdit.ToString() != "1")
            {
                if (groups.ToString() != "1")
                {
                    Response.Write("<script language=\"javascript\" type=\"text/javascript\">");
                    Response.Write("alert('Anda Tidak Memiliki Akses Untuk Edit Di Modul Ini');");
                    Response.Write("location.href = '../Pages/home.aspx';");
                    Response.Write("</script>");
                }
            }
        }

        else if (Param1.ToString() == "D")
        {
            if (MasterIdentitasDelete.ToString() != "1")
            {
                if (groups.ToString() != "1")
                {
                    Response.Write("<script language=\"javascript\" type=\"text/javascript\">");
                    Response.Write("alert('Anda Tidak Memiliki Akses Untuk Delete Di Modul Ini');");
                    Response.Write("location.href = '../Pages/home.aspx';");
                    Response.Write("</script>");
                }
            }
        }

        else if (Param1.ToString() == "I")
        {
            if (MasterIdentitasAssign.ToString() != "1")
            {
                if (groups.ToString() != "1")
                {
                    Response.Write("<script language=\"javascript\" type=\"text/javascript\">");
                    Response.Write("alert('Anda Tidak Memiliki Akses Untuk Menambah Di Modul Ini');");
                    Response.Write("location.href = '../Pages/home.aspx';");
                    Response.Write("</script>");
                }
            }
        }
        else
        {
            Response.Write("<script language=\"javascript\" type=\"text/javascript\">");
            Response.Write("alert('Aksi Yang Anda Cari Tidak Ditemukan');");
            Response.Write("location.href = '../Pages/home.aspx';");
            Response.Write("</script>");
        }
    }
    private bool ServiceSelect(string sm)
    {
        switch (sm)
        {
            case "V":

                var Param1 = Request.Params["param1"].ToString();
                var Param2 = Request.Params["param2"].ToString();

                ALMIS.ExecuteSTP eSTP = new ALMIS.ExecuteSTP();
                eSTP.Datas();
                DataSet ds = new DataSet();
                ds = eSTP.List19("P_BERKS2", Param1, Param2, "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "");

                dt = ds.Tables[0];

                Response.ContentType = "text/plain";
                Response.Write(dt.Rows[0]["berks2NmrBr2"].ToString() + "|"); //0
                Response.Write(dt.Rows[0]["pmbyrnNmrByr"].ToString() + "|"); //1
                Response.Write(dt.Rows[0]["berks2NmrReg"].ToString() + "|"); //2
                Response.Write(dt.Rows[0]["berks2NmrPid"].ToString() + "|"); //3
                Response.Write(dt.Rows[0]["pmbyrnNmrNeg"].ToString() + "|"); //4
                Response.Write(dt.Rows[0]["pmbyrnNovism"].ToString() + "|"); //5
                Response.Write(dt.Rows[0]["pmbyrnNmrPbr"].ToString() + "|"); //6
                Response.Write(dt.Rows[0]["berks2NmrByr"].ToString() + "|"); //7
                Response.Write(dt.Rows[0]["berks2Ketrgn"].ToString() + "|"); //8
                Response.Write(dt.Rows[0]["berks2Slesai"].ToString() + "|"); //9
                Response.Write(dt.Rows[0]["berks2Ekseps"].ToString() + "|"); //10
                Response.Write(dt.Rows[0]["berks2EKeteks"].ToString() + "|"); //11

                dt.Dispose();

                Response.End();
                Response.End();
                return false;

            case "CRUD":
                Response.ContentType = "text/plain";
                Response.Write(Save());
                Response.End();
                return false;

            case "SavePic":
                Response.ContentType = "text/plain";
                Response.Write(SaveUploadFinal());
                Response.End();
                return false;

            case "DOCpic":

                String path_pic = (HttpContext.Current.Request.Url.AbsolutePath).ToLower();

                string IDFinal = Request.Params["IDFinal"].ToString();
                string param1 = Request.Params["param1"].ToString();

                ALMIS.ExecuteSTP eSTPx = new ALMIS.ExecuteSTP();
                eSTPx.Datas();
                DataSet dsx = new DataSet();
                dsx = eSTPx.List8("P_BERKS2_D", param1, IDFinal, "", "", "", "", "", "");

                dt = dsx.Tables[0];

                Response.ContentType = "application/xhtml+xml";
                Response.Write("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
                Response.Write("<rows>");
                for (int i = 0; i < dt.Rows.Count; i++)
                {
                    Random r = new Random();
                    Response.Write("<row id=\"" + (i + 1).ToString() + "\">");

                    Response.Write("<cell>" + (i + 1).ToString() + "</cell>");
                    Response.Write("<cell>" + RemoveWhiteSpace(dt.Rows[i]["codessDescs1"].ToString()) + "</cell>");
                    Response.Write("<cell>" + RemoveWhiteSpace(dt.Rows[i]["berks2Ketrgn"].ToString()) + "</cell>");
                    Response.Write("<cell>" + RemoveWhiteSpace(dt.Rows[i]["hdocumFiless"].ToString()) + "</cell>");

                    Response.Write("<cell>" + "Download^" + path_pic + "?sm=df&amp;namafile=" + dt.Rows[i]["hdocumIdLink"].ToString() + "&amp;filelama=" + dt.Rows[i]["hdocumFiless"].ToString() + "</cell>");
                    //Response.Write("<cell>" + "Delete^" + path_pic + "?sm=Deletepic&amp;IDSOURCE=" + dt.Rows[i]["IDSource"].ToString() + "</cell>");
                    Response.Write("<cell>" + RemoveWhiteSpace("Delete^javascript:DeletePic(\"" + dt.Rows[i]["hdocumIdLink"].ToString()) + "\",\"" + IDFinal + "\");^_self" + "</cell>");
                    //output += "<cell>" + RemoveWhiteSpace("Delete^javascript:Delete(\"D\",\"AMR\",\"" + dt.Rows[i]["IDSOURCE"].ToString() + "\",\"" + dt.Rows[i]["IDAMR"].ToString() + "\",\"" + userID) + "\");^_self</cell>";

                    Response.Write("<cell>" + RemoveWhiteSpace(dt.Rows[i]["hdocumIdSour"].ToString()) + "</cell>");
                    Response.Write("<cell>" + RemoveWhiteSpace(dt.Rows[i]["hdocumIdLink"].ToString()) + "</cell>");

                    Response.Write("</row>");
                }
                Response.Write("</rows>");
                dt.Dispose();
                Response.End();

                return false;

            case "df":
                Response.Clear();
                string namafile = (Request.Params["filelama"] is object ? Request.Params["filelama"].ToString() : "");
                String urlfile = (Request.Params["namafile"] is object ? Request.Params["namafile"].ToString() : "");
                String randomfile = (Request.Params["random"] is object ? Request.Params["random"].ToString() : "");
                string type = "";
                switch (namafile.Substring(namafile.Length - 4))
                {
                    case ".htm":
                    case ".html":
                        type = "text/HTML";
                        break;

                    case ".txt":
                        type = "text/plain";
                        break;

                    case ".doc":
                    case ".docx":
                    case ".rtf":
                        type = "Application/msword";
                        break;
                    case ".xls":
                    case ".xlsx":
                        type = "Application/msexcel";
                        break;

                    case ".zip":
                    case ".rar":
                        type = "application/zip";
                        break;

                    case ".pdf":
                        type = "application/pdf";
                        break;
                    case ".jpg":
                        type = "image/JPG";
                        break;
                    case ".pgn":
                        type = "image/PNG";
                        break;
                    case ".tif":
                        type = "image/tif";
                        break;
                }

                Response.AddHeader("content-disposition", "attachment;filename=" + namafile + "");
                Response.ContentType = type;

                Response.WriteFile(Server.MapPath(@"~/uploaddocument/" + Request.Params["namafile"].ToString().Replace("&amp;", "&")));

                Response.End();
                return false;
                break;

            default:
                Response.ContentType = "text/plain";
                Response.End();
                return true;
        }
    }
示例#6
0
    private void HakAkses()
    {
        //Response.ContentType = "text/plain";

        ALMIS.ExecuteSTP eSTP = new ALMIS.ExecuteSTP();
        eSTP.Datas();
        DataSet ds = new DataSet();

        ds = eSTP.List8("P_MENU", "CHM", "", groups, "", "", "", "", "");

        dt = ds.Tables[0];

        //Response.ContentType = "text/plain";

        for (int i = 0; i < dt.Rows.Count; i++)
        {

            // Kondisi Untuk Landcomp
            if (dt.Rows[i]["NamMod"].ToString() == "Pra Registrasi")
            {

                praregistrasi = dt.Rows[i]["VIEWXXX"].ToString();
                ReportPraRegistrasi = dt.Rows[i]["REPORTX"].ToString();
            }

            if (dt.Rows[i]["NamMod"].ToString() == "Pengecekan Lapangan")
            {

                PengecekanLapangan = dt.Rows[i]["VIEWXXX"].ToString();
                ReportPengecekanLapangan = dt.Rows[i]["REPORTX"].ToString();

            }

            if (dt.Rows[i]["NamMod"].ToString() == "Registrasi")
            {

                Registrasi = dt.Rows[i]["VIEWXXX"].ToString();
                ReportRegistrasi = dt.Rows[i]["REPORTX"].ToString();

            }

            if (dt.Rows[i]["NamMod"].ToString() == "Pengukuran T0")
            {

                PengukuranT0 = dt.Rows[i]["VIEWXXX"].ToString();
                ReportPengukuranT0 = dt.Rows[i]["REPORTX"].ToString();
            }

            if (dt.Rows[i]["NamMod"].ToString() == "Verifikasi")
            {

                Verifikasi = dt.Rows[i]["VIEWXXX"].ToString();
                ReportVerifikasi = dt.Rows[i]["REPORTX"].ToString();
            }

            if (dt.Rows[i]["NamMod"].ToString() == "Negosiasi")
            {

                Negosiasi = dt.Rows[i]["VIEWXXX"].ToString();
                ReportNegosiasi = dt.Rows[i]["REPORTX"].ToString();
            }

            if (dt.Rows[i]["NamMod"].ToString() == "Pemberkasan")
            {

                Pemberkasan = dt.Rows[i]["VIEWXXX"].ToString();

            }

            if (dt.Rows[i]["NamMod"].ToString() == "Pembayaran")
            {

                Pembayaran = dt.Rows[i]["VIEWXXX"].ToString();

            }

            if (dt.Rows[i]["NamMod"].ToString() == "Finalisasi")
            {

                Finalisasi = dt.Rows[i]["VIEWXXX"].ToString();
                ReportFinalisasi = dt.Rows[i]["REPORTX"].ToString();
            }

            if (dt.Rows[i]["NamMod"].ToString() == "Serah Terima Berkas")
            {

                SerahTerimaBerkas = dt.Rows[i]["VIEWXXX"].ToString();

            }

            // Kondisi Untuk Admins Tools

            if (dt.Rows[i]["NamMod"].ToString() == "Master Identitas")
            {

                MasterIdentitas = dt.Rows[i]["VIEWXXX"].ToString();

            }

            if (dt.Rows[i]["NamMod"].ToString() == "User Management")
            {

                UserManagement = dt.Rows[i]["VIEWXXX"].ToString();

            }

            if (dt.Rows[i]["NamMod"].ToString() == "Group Management")
            {

                GroupManagement = dt.Rows[i]["VIEWXXX"].ToString();

            }

            if (dt.Rows[i]["NamMod"].ToString() == "Master Menu")
            {

                MasterMenu = dt.Rows[i]["VIEWXXX"].ToString();

            }

            if (dt.Rows[i]["NamMod"].ToString() == "Master Codes")
            {

                MasterCodes = dt.Rows[i]["VIEWXXX"].ToString();

            }

            if (dt.Rows[i]["NamMod"].ToString() == "Master Perusahaan")
            {

                MasterPerusahaan = dt.Rows[i]["VIEWXXX"].ToString();

            }

            // Kondisi Untuk Land Litigation

            if (dt.Rows[i]["NamMod"].ToString() == "Claim User")
            {

                ClaimUser = dt.Rows[i]["VIEWXXX"].ToString();

            }

            if (dt.Rows[i]["NamMod"].ToString() == "Persiapan Dokumen")
            {

                PersiapanDokumen = dt.Rows[i]["VIEWXXX"].ToString();

            }

            if (dt.Rows[i]["NamMod"].ToString() == "Verifikasi Dokumen")
            {

                VerifikasiDokumen = dt.Rows[i]["VIEWXXX"].ToString();

            }

            if (dt.Rows[i]["NamMod"].ToString() == "Legal")
            {

                Legal = dt.Rows[i]["VIEWXXX"].ToString();

            }

            // Kondisi Untuk Map Landcomp

            if (dt.Rows[i]["NamMod"].ToString() == "Top Priority")
            {

                TopPriority = dt.Rows[i]["VIEWXXX"].ToString();

            }

            if (dt.Rows[i]["NamMod"].ToString() == "Five Years")
            {

                FiveYears = dt.Rows[i]["VIEWXXX"].ToString();

            }

            if (dt.Rows[i]["NamMod"].ToString() == "LOM")
            {

                LOM = dt.Rows[i]["VIEWXXX"].ToString();

            }

            if (dt.Rows[i]["NamMod"].ToString() == "Other")
            {

                Other = dt.Rows[i]["VIEWXXX"].ToString();

            }

            // Kondisi Untuk Map

            if (dt.Rows[i]["NamMod"].ToString() == "Map AI")
            {

                MapAI = dt.Rows[i]["VIEWXXX"].ToString();

            }

            if (dt.Rows[i]["NamMod"].ToString() == "Map BC")
            {

                MapBC = dt.Rows[i]["VIEWXXX"].ToString();

            }

            if (dt.Rows[i]["NamMod"].ToString() == "Map MIP")
            {

                MapMIP = dt.Rows[i]["VIEWXXX"].ToString();

            }

            // Kondisi Izin Lokasi

            if (dt.Rows[i]["NamMod"].ToString() == "Persiapan")
            {

                Persiapan = dt.Rows[i]["VIEWXXX"].ToString();

            }

            if (dt.Rows[i]["NamMod"].ToString() == "Proses Pengurusan")
            {

                ProsesPengurusan = dt.Rows[i]["VIEWXXX"].ToString();

            }

            if (dt.Rows[i]["NamMod"].ToString() == "Proses Izin Lokasi")
            {

                ProsesIzinLokasi = dt.Rows[i]["VIEWXXX"].ToString();

            }

            if (dt.Rows[i]["NamMod"].ToString() == "Pelaporan")
            {

                Pelaporan = dt.Rows[i]["VIEWXXX"].ToString();

            }

            // Kondisi Land Sertification

            if (dt.Rows[i]["NamMod"].ToString() == "Proses Land Management")
            {

                ProsesLandManagement = dt.Rows[i]["VIEWXXX"].ToString();

            }

            if (dt.Rows[i]["NamMod"].ToString() == "Persiapan Internal")
            {

                PersiapanInternal = dt.Rows[i]["VIEWXXX"].ToString();

            }

            if (dt.Rows[i]["NamMod"].ToString() == "Tahapan Proses BPN")
            {

                TahapanProsesBPN = dt.Rows[i]["VIEWXXX"].ToString();

            }

            if (dt.Rows[i]["NamMod"].ToString() == "Tahapan Perolehan Produk")
            {

                TahapanPerolehanProduk = dt.Rows[i]["VIEWXXX"].ToString();

            }

            // Kondisi Land Complaince
            if (dt.Rows[i]["NamMod"].ToString() == "Land Complaince Modul")
            {

                LandComplainceModul = dt.Rows[i]["VIEWXXX"].ToString();

            }

            // Kondisi Land Utilization
            if (dt.Rows[i]["NamMod"].ToString() == "Kelas Lahan")
            {

                KelasLahan = dt.Rows[i]["VIEWXXX"].ToString();

            }

            // Kondisi Land Land Secure
            if (dt.Rows[i]["NamMod"].ToString() == "Land Secure")
            {

                LandSecure = dt.Rows[i]["VIEWXXX"].ToString();

            }

            // Kondisi Land Use
            if (dt.Rows[i]["NamMod"].ToString() == "Land Use")
            {

                LandUse = dt.Rows[i]["VIEWXXX"].ToString();

            }

        }

        dt.Dispose();

        //Response.End();
    }
    private void HakAkses()
    {
        if (Session["userid"] is object)
        {
            userid = Session["userid"].ToString();

            if (Session["groups"] is object)
            {
                groups = Session["groups"].ToString();

            }

        }

        if (!(Session["userid"] is object))
        {
            Response.Write("<script language=\"javascript\" type=\"text/javascript\">");
            Response.Write("alert('Session sudah habis. Silakan login kembali.');");
            Response.Write("location.href = '../Pages/login.aspx';");
            Response.Write("</script>");
        }

        ALMIS.ExecuteSTP eSTP = new ALMIS.ExecuteSTP();
        eSTP.Datas();
        DataSet ds = new DataSet();

        ds = eSTP.List8("P_MENU", "CHA", "", groups, "", "", "", "", "");

        dt = ds.Tables[0];

        MasterIdentitasEdit = dt.Rows[11]["MasterIdentitasEdit"].ToString(); //0
        MasterIdentitasDelete = dt.Rows[11]["MasterIdentitasDelete"].ToString(); //1
        MasterIdentitasView = dt.Rows[11]["MasterIdentitas"].ToString(); //2
        MasterIdentitasAssign = dt.Rows[11]["MasterIdentitasAssign"].ToString(); //3

        dt.Dispose();

        if (MasterIdentitasView.ToString() != "1")
        {
            if (groups.ToString() != "1")
            {
                Response.Write("<script language=\"javascript\" type=\"text/javascript\">");
                Response.Write("alert('Anda Tidak Memiliki Akses Untuk Melihat Modul Ini');");
                Response.Write("location.href = '../Pages/home.aspx';");
                Response.Write("</script>");
            }
        }
    }