Exemple #1
0
        public ActionResult Index(string id)
        {
            log.Info("Search For Estimation Form !!");
            ViewBag.projectid = id;
            getProject(id);
            //取得表單狀態參考資料
            SelectList LstStatus = new SelectList(SystemParameter.getSystemPara("ExpenseForm"), "KEY_FIELD", "VALUE_FIELD");

            ViewData.Add("status", LstStatus);
            string strStatus = null;

            if (null != Request["status"])
            {
                strStatus = Request["status"];
            }
            else
            {
                strStatus = "30";
            }
            EstimationFormApprove model = new EstimationFormApprove();
            //取得審核中表單資料
            Flow4Estimation   workflow = new Flow4Estimation();
            EstimationService es       = new EstimationService();

            model.lstEstimationFlowTask = workflow.getEstimationFormRequest(Request["contractid"], Request["payee"], Request["estid"], id, strStatus);
            ViewBag.SearchResult        = "共取得" + model.lstEstimationFlowTask + "筆資料";
            getProject(id);
            return(View(model));
        }
        //查詢廠商計價單
        public ActionResult FormList()
        {
            logger.Info("Search For Estimation Form !!");
            TnderProjectService tndservice   = new TnderProjectService();
            string                 projectid = Request["projects"];
            Flow4Estimation        s         = new Flow4Estimation();
            List <ExpenseFlowTask> lstEST    = s.getEstimationFormRequest(null, null, null, projectid, Request["status"]);

            return(PartialView("_EstimationFormList", lstEST));
        }