/// <summary>
        /// 覆核作業 畫面初始
        /// </summary>
        /// <returns></returns>
        public ActionResult Appr()
        {
            ViewBag.opScope = GetopScope("~/TreasuryAccessCustody/");
            var userInfo = TreasuryAccess.GetUserInfo(AccountController.CurrentUserId);

            ViewBag.hCREATE_User = userInfo.EMP_ID;
            ViewBag.hCREATE_Dep  = userInfo.DPT_ID;
            return(View());
        }
示例#2
0
        /// <summary>
        /// 覆核起始畫面
        /// </summary>
        /// <returns></returns>
        public ActionResult Appr()
        {
            ViewBag.opScope = GetopScope("~/SpecifiedTimeTrea/");
            var userInfo = TreasuryAccess.GetUserInfo(AccountController.CurrentUserId);
            var data     = SpecifiedTimeTreasury.GetTreaItem();

            ViewBag.hCREATE_User = userInfo.EMP_ID;
            ViewBag.hCREATE_Dep  = userInfo.DPT_ID;
            //內文編號
            ViewBag.emailId = data.Item5;
            return(View());
        }
示例#3
0
        /// <summary>
        /// 畫面初始
        /// </summary>
        /// <returns></returns>
        public ActionResult Search()
        {
            ViewBag.opScope = GetopScope("~/TreaDefinitionAppr/");
            var userInfo = TreasuryAccess.GetUserInfo(AccountController.CurrentUserId);

            List <SelectOption> enums = ((Ref.DefinitionType[])System.Enum.GetValues(typeof(Ref.DefinitionType))).Select(c => new SelectOption()
            {
                Value = c.ToString(), Text = c.GetDescription()
            }).ToList();
            var All = new SelectOption()
            {
                Text = "All", Value = "All"
            };

            enums.Insert(0, All);
            ViewBag.dOption      = new SelectList(enums, "Value", "Text");
            ViewBag.hCREATE_User = userInfo.EMP_ID;
            return(View());
        }
示例#4
0
        // GET: ConfirmStorage
        public ActionResult Index()
        {
            ViewBag.opScope = GetopScope("~/ConfirmStorage/");
            var data      = ConfirmStorage.GetFirstTimeData(AccountController.CurrentUserId);
            var userInfo  = TreasuryAccess.GetUserInfo(AccountController.CurrentUserId);
            var plsSelect = new SelectOption()
            {
                Text = "請選擇", Value = "0"
            };

            ViewBag.hEMP_ID   = userInfo.EMP_ID;
            ViewBag.lEMP_Name = userInfo.EMP_Name;
            ViewBag.hDPT_ID   = userInfo.DPT_ID;
            ViewBag.lDPT_Name = userInfo.DPT_Name;
            ViewBag.cUSER_ID  = AccountController.CurrentUserId;
            //ViewBag.storageType = new SelectList(data.Item1, "Value", "Text");
            ViewBag.sealItem    = new SelectList(data.Item1, "Value", "Text");
            ViewBag.accessType  = new SelectList(data.Item2, "Value", "Text");
            ViewBag.treaItem    = new SelectList(data.Item3, "value", "Text");
            ViewBag.itemOpType  = new SelectList(data.Item4, "value", "Text");
            ViewBag.register_ID = data.Item5;
            ViewBag.itemID      = string.Join(";", data.Item6);
            return(View());
        }