Exemple #1
0
        public ActionResult Index(FormCollection f)
        {
            TnderProjectService s = new TnderProjectService();

            log.Info("projectid=" + Request["projectid"] + ",textCode1=" + Request["textCode1"] + ",textCode2=" + Request["textCode2"]);
            //加入刪除註記 預設 "N"
            List <Topmep.Models.TND_PROJECT_ITEM> lstProject = s.getProjectItem(null, Request["projectid"], Request["textCode1"], Request["textCode2"], Request["SystemMain"], Request["systemSub"], "N");

            ViewBag.SearchResult = "共取得" + lstProject.Count + "筆資料";
            ViewBag.projectId    = Request["projectid"];
            //加入系統次系統
            SelectListItem empty = new SelectListItem();

            empty.Value = "";
            empty.Text  = "";
            List <SelectListItem> selectMain = UtilService.getMainSystem(Request["projectid"], service);

            // selectMain.Add(empty);
            ViewBag.SystemMain = selectMain;
            List <SelectListItem> selectSub = UtilService.getSubSystem(Request["projectid"], service);

            //selectSub.Add(empty);
            ViewBag.SystemSub = selectSub;
            return(View("Index", lstProject));
        }
Exemple #2
0
        /// <summary>
        /// 設定標單品項查詢條件
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public ActionResult ManageProjectItem(string id)
        {
            //傳入專案編號,
            InquiryFormService service = new InquiryFormService();

            logger.Info("start project id=" + id);

            //取得專案基本資料fc
            TND_PROJECT p = service.getProjectById(id);

            ViewBag.id          = p.PROJECT_ID;
            ViewBag.projectName = p.PROJECT_NAME;

            SelectListItem empty = new SelectListItem();

            empty.Value = "";
            empty.Text  = "";
            List <SelectListItem> selectMain = UtilService.getMainSystem(id, service);

            // selectMain.Add(empty);
            ViewBag.SystemMain = selectMain;
            List <SelectListItem> selectSub = UtilService.getSubSystem(id, service);

            //selectSub.Add(empty);
            ViewBag.SystemSub = selectSub;
            //設定查詢條件
            return(View());
        }
Exemple #3
0
        // GET: Inquiry
        public ActionResult Index(string id)
        {
            log.Info("inquiry index : projectid=" + id);
            ViewBag.projectId = id;
            SelectListItem empty = new SelectListItem();

            empty.Value = "";
            empty.Text  = "";
            List <SelectListItem> selectMain = UtilService.getMainSystem(id, service);

            // selectMain.Add(empty);
            ViewBag.SystemMain = selectMain;
            List <SelectListItem> selectSub = UtilService.getSubSystem(id, service);

            //selectSub.Add(empty);
            ViewBag.SystemSub = selectSub;
            return(View());
        }