Exemplo n.º 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                rbConfirm.SelectedValue = "0";
                InitCombo();
            }

            btnSubmit.Visible = RoleCheck.CheckRoleView(((wcf_auth.GeneralUserProfile)SessionCheck.Check(Response, Session["userprofile"])).mRoleList, "BL.Permohonan.Edit");
        }
Exemplo n.º 2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                initCombo();
            }
            GetData();

            btnSubmit.Visible = RoleCheck.CheckRoleView(((wcf_auth.GeneralUserProfile)SessionCheck.Check(Response, Session["userprofile"])).mRoleList, "PK.Penilaian.Edit");
        }
Exemplo n.º 3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                getData();

                var userRoles = ((wcf_auth.GeneralUserProfile)SessionCheck.Check(Response, Session["userprofile"])).mRoleList;
                btnUpload.Visible = RoleCheck.CheckRoleView(userRoles, "PK.Penerimaan.Edit");
            }
        }
        protected void prosesButton_Click(object sender, EventArgs e)
        {
            string id = Session["proposal_number"].ToString();

            ActivityLog    log       = new ActivityLog();
            ActivityLogBll logBll    = new ActivityLogBll();
            string         host      = Request.UserHostName;
            string         ipaddress = Request.UserHostAddress;
            string         userName  = Session["user"].ToString();

            if (String.IsNullOrEmpty(ipaddress))
            {
                ipaddress = HttpContext.Current.Request.ServerVariables["REMOTE_ADDR"];
            }
            log.HostName  = host;
            log.IPAddress = ipaddress;
            log.Action    = "get preview jadwal pembayaran";
            log.UserName  = userName;

            try
            {
                DataTable dt = bll.getPreviewData(id);
                gvDetailAngsur.DataSource = dt;
                gvDetailAngsur.DataBind();

                int row   = 0;
                int tagih = int.Parse(txtTagihan.Text);
                int grace = int.Parse(txtGrace.Text);

                row = tagih > grace ? tagih : grace;

                txtAngsur.Text       = dt.Rows[row - 1]["jumlah"].ToString();
                txtHutang.Text       = dt.Rows[row - 1]["HutangPokok"].ToString();
                txtBungaPokok.Text   = dt.Rows[row - 1]["Bunga"].ToString();
                txtTanggalTempo.Date = DateTime.Parse(dt.Rows[int.Parse(txtJangkaWaktu.Text) - 1]["TglJatuhTempo"].ToString());

                SAVE.Visible  = true;
                BATAL.Visible = true;

                SAVE.Visible  = RoleCheck.CheckRoleView(((wcf_auth.GeneralUserProfile)SessionCheck.Check(Response, Session["userprofile"])).mRoleList, "PK.Penilaian.Edit");
                BATAL.Visible = RoleCheck.CheckRoleView(((wcf_auth.GeneralUserProfile)SessionCheck.Check(Response, Session["userprofile"])).mRoleList, "PK.Penilaian.Edit");

                log.Type        = "S";
                log.Description = log.Action + " sukses oleh " + userName;
            }
            catch (Exception Ex)
            {
                log.Type        = "E";
                log.Description = log.Action + " error :" + Ex.Message;
            }
            finally {
                logBll.InsertActivity(log);
            }
        }
Exemplo n.º 5
0
        private void roleAuth()
        {
            var  userRoles = ((wcf_auth.GeneralUserProfile)SessionCheck.Check(Response, Session["userprofile"])).mRoleList;
            bool view      = RoleCheck.CheckRoleView(userRoles, "RPT.BinaLing.View");

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

            if (view == false)
            {
                Response.Redirect("~/Default.aspx");
            }
        }
Exemplo n.º 6
0
        private void roleAuth()
        {
            var  userRoles = ((wcf_auth.GeneralUserProfile)SessionCheck.Check(Response, Session["userprofile"])).mRoleList;
            bool insert    = RoleCheck.CheckRoleView(userRoles, "AKUN.PK.KartuPiutang.Add");
            bool edit      = RoleCheck.CheckRoleView(userRoles, "AKUN.PK.KartuPiutang.Edit");
            bool view      = RoleCheck.CheckRoleView(userRoles, "AKUN.PK.KartuPiutang.View");

            if (view == false)
            {
                Response.Redirect("~/Default.aspx");
            }
        }
Exemplo n.º 7
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                deTglPersetujuan.Value = DateTime.Today;
                InitCombo();
                GetData();

                var userRoles = ((wcf_auth.GeneralUserProfile)SessionCheck.Check(Response, Session["userprofile"])).mRoleList;
                btnSimpan.Visible = RoleCheck.CheckRoleView(userRoles, "PK.Persetujuan.Edit");
            }
        }
Exemplo n.º 8
0
        protected void Page_Load(object sender, EventArgs e)
        {
            roleAuth();
            if (!IsPostBack)
            {
                deTglBukti.Date   = DateTime.Today;
                Session["Report"] = bll.DetailTable;
            }
            GetData();

            btnSimpan.Visible = RoleCheck.CheckRoleView(((wcf_auth.GeneralUserProfile)SessionCheck.Check(Response, Session["userprofile"])).mRoleList, "AKUN.JURNAL.Adjusment.Add");
            btnTambah.Visible = RoleCheck.CheckRoleView(((wcf_auth.GeneralUserProfile)SessionCheck.Check(Response, Session["userprofile"])).mRoleList, "AKUN.JURNAL.Adjusment.Add");
        }
Exemplo n.º 9
0
        private void roleAuth()
        {
            var  userRoles = ((wcf_auth.GeneralUserProfile)SessionCheck.Check(Response, Session["userprofile"])).mRoleList;
            bool insert    = RoleCheck.CheckRoleView(userRoles, "AKUN.PK.Pencairan.Add");
            bool edit      = RoleCheck.CheckRoleView(userRoles, "AKUN.PK.Pencairan.Add");
            bool view      = RoleCheck.CheckRoleView(userRoles, "AKUN.PK.Pencairan.Add");

            btnSimpan.Visible = insert;

            if (view == false)
            {
                Response.Redirect("~/Default.aspx");
            }
        }
Exemplo n.º 10
0
        private void roleAuth()
        {
            var  userRoles = ((wcf_auth.GeneralUserProfile)SessionCheck.Check(Response, Session["userprofile"])).mRoleList;
            bool insert    = RoleCheck.CheckRoleView(userRoles, "AKUN.JURNAL.Adjusment.Add");
            bool edit      = RoleCheck.CheckRoleView(userRoles, "AKUN.JURNAL.Adjusment.Edit");
            bool view      = RoleCheck.CheckRoleView(userRoles, "AKUN.JURNAL.Adjusment.View");

            ((GridViewCommandColumn)gvDaftarJrnal.Columns["Opr."]).CustomButtons["btnKoreksi"].Visibility = (insert) ? GridViewCustomButtonVisibility.AllDataRows : GridViewCustomButtonVisibility.Invisible;
            ((GridViewCommandColumn)gvDaftarJrnal.Columns["Opr."]).CustomButtons["btnKoreksi"].Visibility = (edit) ? GridViewCustomButtonVisibility.AllDataRows : GridViewCustomButtonVisibility.Invisible;
            if (view == false)
            {
                Response.Redirect("~/Default.aspx");
            }
        }
Exemplo n.º 11
0
        private void roleAuth()
        {
            var  userRoles = ((wcf_auth.GeneralUserProfile)SessionCheck.Check(Response, Session["userprofile"])).mRoleList;
            bool insert    = RoleCheck.CheckRoleView(userRoles, "ADM.AKUN.MapBankCOAJBL.Add");
            bool edit      = RoleCheck.CheckRoleView(userRoles, "ADM.AKUN.MapBankCOAJBL.Edit");
            bool view      = RoleCheck.CheckRoleView(userRoles, "ADM.AKUN.MapBankCOAJBL.View");

            //((GridViewCommandColumn)gvPermohonan.Columns["opr"]).ShowNewButton = insert;
            ((GridViewCommandColumn)gvCoaJenisBinaling.Columns["Opr."]).ShowEditButton = edit;
            if (view == false)
            {
                Response.Redirect("~/Default.aspx");
            }
            btnSubmit.Visible = insert;
        }
Exemplo n.º 12
0
        private void roleAuth()
        {
            var  userRoles = ((wcf_auth.GeneralUserProfile)SessionCheck.Check(Response, Session["userprofile"])).mRoleList;
            bool view      = RoleCheck.CheckRoleView(userRoles, "Menu.Akuntansi");

            btnCancelConfirm.Visible = RoleCheck.CheckRoleView(((wcf_auth.GeneralUserProfile)SessionCheck.Check(Response, Session["userprofile"])).mRoleList, "AKUN.PK.Pembayaran.Add");
            btnConfirmYes.Visible    = RoleCheck.CheckRoleView(((wcf_auth.GeneralUserProfile)SessionCheck.Check(Response, Session["userprofile"])).mRoleList, "AKUN.PK.Pembayaran.Add");
            btnSubmit.Visible        = RoleCheck.CheckRoleView(((wcf_auth.GeneralUserProfile)SessionCheck.Check(Response, Session["userprofile"])).mRoleList, "AKUN.PK.Pembayaran.Add");
            btnUpdate.Visible        = RoleCheck.CheckRoleView(((wcf_auth.GeneralUserProfile)SessionCheck.Check(Response, Session["userprofile"])).mRoleList, "AKUN.PK.Pembayaran.Add");

            if (view == false)
            {
                Response.Redirect("~/Default.aspx");
            }
        }
Exemplo n.º 13
0
        private void roleAuth()
        {
            var  userRoles = ((wcf_auth.GeneralUserProfile)SessionCheck.Check(Response, Session["userprofile"])).mRoleList;
            bool view      = RoleCheck.CheckRoleView(userRoles, "AKUN.PK.DiskonJasa.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;
        }
Exemplo n.º 14
0
        private void roleAuth()
        {
            var  userRoles = ((wcf_auth.GeneralUserProfile)SessionCheck.Check(Response, Session["userprofile"])).mRoleList;
            bool insert    = RoleCheck.CheckRoleView(userRoles, "AKUN.JURNAL.Adjusment.Add");
            bool edit      = RoleCheck.CheckRoleView(userRoles, "AKUN.JURNAL.Adjusment.Edit");
            bool view      = RoleCheck.CheckRoleView(userRoles, "AKUN.JURNAL.Adjusment.View");
            bool delete    = RoleCheck.CheckRoleView(userRoles, "AKUN.JURNAL.Adjusment.Delete");;

            btnTambah.Visible = insert;
            ((GridViewCommandColumn)gvDetailKas.Columns["opr"]).ShowEditButton   = edit;
            ((GridViewCommandColumn)gvDetailKas.Columns["opr"]).ShowDeleteButton = delete;
            if (view == false)
            {
                Response.Redirect("~/Default.aspx");
            }
        }
Exemplo n.º 15
0
        protected void gvDetailDiskonJasa_CommandButtonInitialize(object sender, DevExpress.Web.ASPxGridView.ASPxGridViewCommandButtonEventArgs e)
        {
            int flag = Convert.ToInt32(gvDetailDiskonJasa.GetRowValues(e.VisibleIndex, "flag"));

            if (e.ButtonType == DevExpress.Web.ASPxGridView.ColumnCommandButtonType.Edit)
            {
                if (flag == 1)
                {
                    e.Visible = true;
                }
                else
                {
                    e.Visible = false;
                }

                e.Visible = RoleCheck.CheckRoleView(((wcf_auth.GeneralUserProfile)SessionCheck.Check(Response, Session["userprofile"])).mRoleList, "AKUN.PK.DiskonJasa.Add");
            }
        }
Exemplo n.º 16
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                GetData();

                if (Session["bl"] != null)
                {
                    if (Session["bl"].ToString() == "0")
                    {
                        txtKetBayar.Enabled = false;

                        ((GridViewCommandColumn)gvDetailKas.Columns["opr"]).ShowEditButton = false;
                        txtKepada.Enabled  = false;
                        deTglBukti.Enabled = false;
                        Session["bl"]      = null;
                    }
                }
            }

            btnTambah.Visible = RoleCheck.CheckRoleView(((wcf_auth.GeneralUserProfile)SessionCheck.Check(Response, Session["userprofile"])).mRoleList, "AKUN.JURNAL.KasBank.Edit");
        }
Exemplo n.º 17
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                var       branchCode = ((wcf_auth.GeneralUserProfile)SessionCheck.Check(Response, Session["userprofile"])).mAuthObjectValueList.FirstOrDefault(t => t.mAuthObjectName == "REGION").Value1;
                DataTable dt         = new DataTable();
                DataRow   detail;
                DataView  view;
                dt.Columns.Add("id", typeof(int));
                dt.Columns.Add("Category", typeof(string));

                if (branchCode == "9900")
                {
                    detail             = dt.NewRow();
                    detail["id"]       = 0;
                    detail["Category"] = "--Select--";
                    dt.Rows.Add(detail);

                    detail             = dt.NewRow();
                    detail["id"]       = 1;
                    detail["Category"] = "Transfer Pusat ke Cabang - PK";
                    dt.Rows.Add(detail);

                    detail             = dt.NewRow();
                    detail["id"]       = 2;
                    detail["Category"] = "Transfer Pusat ke Cabang - BL";
                    dt.Rows.Add(detail);

                    view = new DataView(dt);

                    cbbDrop.DataSource = view;
                    cbbDrop.ValueField = "id";
                    cbbDrop.TextField  = "Category";
                    cbbDrop.DataBind();
                    cbbDrop.SelectedIndex = 0;
                }
                else
                {
                    detail             = dt.NewRow();
                    detail["id"]       = 0;
                    detail["Category"] = "--Select--";
                    dt.Rows.Add(detail);

                    detail             = dt.NewRow();
                    detail["id"]       = 1;
                    detail["Category"] = "Transfer Cabang Ke Pusat - PK";
                    dt.Rows.Add(detail);

                    detail             = dt.NewRow();
                    detail["id"]       = 2;
                    detail["Category"] = "Transfer Cabang Ke Pusat - BL";
                    dt.Rows.Add(detail);

                    view = new DataView(dt);

                    cbbDrop.DataSource = view;
                    cbbDrop.ValueField = "id";
                    cbbDrop.TextField  = "Category";
                    cbbDrop.DataBind();
                    cbbDrop.SelectedIndex = 0;
                }
                GetData();
            }

            btnApprove.Visible = RoleCheck.CheckRoleView(((wcf_auth.GeneralUserProfile)SessionCheck.Check(Response, Session["userprofile"])).mRoleList, "AKUN.TransferDanaBank.Add");
            btnCacel.Visible   = RoleCheck.CheckRoleView(((wcf_auth.GeneralUserProfile)SessionCheck.Check(Response, Session["userprofile"])).mRoleList, "AKUN.TransferDanaBank.Add");
            btnProses.Visible  = RoleCheck.CheckRoleView(((wcf_auth.GeneralUserProfile)SessionCheck.Check(Response, Session["userprofile"])).mRoleList, "AKUN.TransferDanaBank.Add");
        }