コード例 #1
0
        /// <summary>
        /// 初期画面権限編集
        /// </summary>
        protected void Auth_Proc()
        {
            IM_Menu menu = new IM_Menu(g_user_id, g_lang);

            menu.user_id    = g_user_id;
            menu.program_id = "MstUserMnt";
            menu.GetUserProgramAuthority();
            int g_auth = menu.executable_flag;

            if (g_auth == 2)//実行権限=2(変更)の場合、照会、新規、変更、削除ボタンを選択可に制御する。
            {
                //do nothing
            }
            else//実行権限=1(照会)の場合、照会のみ選択可にして、新規、変更、削除ボタンは選択不可に制御する。
            {
                btnMadd.Enabled = false;
                btnMdel.Enabled = false;
                btnMupd.Enabled = false;
                //cmdPassWord.Enabled = false;
                switch (g_lang)
                {
                case 1:
                    //btnMadd.ImageUrl = "../../Contents/Image/BackGround/btn-new4-1.jpg";
                    //btnMupd.ImageUrl = "../../Contents/Image/BackGround/btn-change4-1.jpg";
                    //btnMdel.ImageUrl = "../../Contents/Image/BackGround/btn-delete4-1.jpg";
                    //cmdPassWord.ImageUrl = "../../Contents/Image/BackGround/btn-password_reset3-1.jpg";
                    break;

                case 2:
                    //btnMadd.ImageUrl = "../../Contents/Image/BackGround/btn-new4-2.jpg";
                    //btnMupd.ImageUrl = "../../Contents/Image/BackGround/btn-change4-2.jpg";
                    //btnMdel.ImageUrl = "../../Contents/Image/BackGround/btn-delete4-2.jpg";
                    //cmdPassWord.ImageUrl = "../../Contents/Image/BackGround/btn-password_reset3-2.jpg";
                    break;

                case 3:
                    //btnMadd.ImageUrl = "../../Contents/Image/BackGround/btn-new4-3.jpg";
                    //btnMupd.ImageUrl = "../../Contents/Image/BackGround/btn-change4-3.jpg";
                    //btnMdel.ImageUrl = "../../Contents/Image/BackGround/btn-delete4-3.jpg";
                    //cmdPassWord.ImageUrl = "../../Contents/Image/BackGround/btn-password_reset3-3.jpg";
                    break;

                case 4:
                    //btnMadd.ImageUrl = "../../Contents/Image/BackGround/btn-new4-4.jpg";
                    //btnMupd.ImageUrl = "../../Contents/Image/BackGround/btn-change4-4.jpg";
                    //btnMdel.ImageUrl = "../../Contents/Image/BackGround/btn-delete4-4.jpg";
                    //cmdPassWord.ImageUrl = "../../Contents/Image/BackGround/btn-password_reset3-4.jpg";
                    break;
                }
            }
        }
コード例 #2
0
ファイル: Common.cs プロジェクト: PeerasinK/FreelanceHD
        //Add 2013.09.02 Ubiq-Sai Begin
        public int GetBackMenuGrpLvl(string program_id, string user_id)
        {
            IM_Menu menu = new IM_Menu();

            menu.program_id = program_id;
            menu.user_id    = user_id;

            int rtn = menu.GetBackMenuGrpLvl();

            if (rtn == ComConst.SUCCEED)
            {
                return(menu.glvl);
            }
            else
            {
                return(0);
            }
        }
コード例 #3
0
ファイル: Common.cs プロジェクト: PeerasinK/FreelanceHD
        public string GetBackMenuGrp(string program_id, int lvl)
        {
            IM_Menu menu = new IM_Menu();

            menu.program_id = program_id;
            menu.lvl        = lvl;

            int rtn = menu.GetBackMenuGrp();

            if (rtn == ComConst.SUCCEED)
            {
                return(menu.back_menu_grp);
            }
            else
            {
                return("");
            }
        }
コード例 #4
0
        /// <summary>
        /// 初期画面権限編集
        /// </summary>
        protected void Auth_Proc()
        {
            IM_Menu menu = new IM_Menu(g_user_id, g_lang);

            menu.user_id    = g_user_id;
            menu.program_id = "MstCalanderMnt";//カレンダマスタ
            menu.GetUserProgramAuthority();
            int g_auth = menu.executable_flag;

            if (g_auth == 2)//実行権限=2(変更)の場合。
            {
                //do nothing
            }
            else//照会権限のみのときは、更新ボタンを無効にしてください。
            {
                cmdUpdate.Enabled = false;
                switch (g_lang)
                {
                case 1:
                    //cmdUpdate.ImageUrl = "../../Contents/Image/BackGround/btn-update3-1.jpg";
                    break;

                case 2:
                    //cmdUpdate.ImageUrl = "../../Contents/Image/BackGround/btn-update3-2.jpg"; ;
                    break;

                case 3:
                    //cmdUpdate.ImageUrl = "../../Contents/Image/BackGround/btn-update3-3.jpg";
                    break;

                case 4:
                    //cmdUpdate.ImageUrl = "../../Contents/Image/BackGround/btn-update3-4.jpg";
                    break;
                }
            }
        }