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 costChangeForm(string id) { string formId = id; log.Debug("formId=" + formId); //先取得資料 CostChangeService cs = new CostChangeService(); cs.getChangeOrderForm(formId); ViewBag.FormId = formId; ViewBag.projectId = cs.project.PROJECT_ID; ViewBag.projectName = cs.project.PROJECT_NAME; ViewBag.settlementDate = cs.form.SETTLEMENT_DATE; //取得表單資料存入Session Flow4CostChange wfs = new Flow4CostChange(); wfs.getTask(formId); wfs.task.FormData = cs.form; wfs.task.lstItem = cs.lstItem; Session["process"] = wfs.task; SelectList reasoncode = new SelectList(SystemParameter.getSystemPara("COSTHANGE", "REASON"), "KEY_FIELD", "VALUE_FIELD", cs.form.REASON_CODE); ViewData.Add("reasoncode", reasoncode); //財務處理區塊 SelectList methodcode = new SelectList(SystemParameter.getSystemPara("COSTHANGE", "METHOD"), "KEY_FIELD", "VALUE_FIELD", cs.form.METHOD_CODE); ViewData.Add("methodcode", methodcode); return(View(wfs.task)); }
//廠商計價單管理 public ActionResult Index() { SelectList lstProject = new SelectList(PlanService.SearchProjectByName("", "專案執行", null), "PROJECT_ID", "PROJECT_NAME"); //取得表單狀態參考資料 SelectList status = new SelectList(SystemParameter.getSystemPara("ExpenseForm"), "KEY_FIELD", "VALUE_FIELD"); ViewData.Add("status", status); ViewData.Add("projects", lstProject); return(View()); }
/// <summary> /// 取得Key ,Value /// </summary> /// <returns></returns> public PartialViewResult getKeyValues() { string functionId = Request["paraFunction"]; string fieldId = Request["paraField"]; List <SYS_PARA> lst = null; if (fieldId != "") { lst = SystemParameter.getSystemPara(functionId, fieldId); } else { lst = SystemParameter.getSystemPara(functionId); } log.Debug("functionId,fieldId" + functionId + "," + fieldId); return(PartialView("_Para", lst)); }
public ActionResult SearchEXP() { string id = Request["id"]; string status = Request["status"]; if (id != null && id != "") { TND_PROJECT p = service.getProjectById(id); ViewBag.projectName = p.PROJECT_NAME; ViewBag.projectid = id; } SelectList LstStatus = new SelectList(SystemParameter.getSystemPara("ExpenseForm"), "KEY_FIELD", "VALUE_FIELD"); ViewData.Add("status", LstStatus); Flow4CompanyExpense s = new Flow4CompanyExpense(); List <ExpenseFlowTask> lstEXP = s.getCompanyExpenseRequest(Request["occurred_date"], Request["subjectname"], Request["expid"], id, status); ViewBag.SearchResult = "共取得" + lstEXP.Count + "筆資料"; return(View("ExpenseForm", lstEXP)); }
//費用單查詢 public ActionResult ExpenseForm(string id) { if (id != null && id != "") { TND_PROJECT p = service.getProjectById(id); ViewBag.projectName = p.PROJECT_NAME; ViewBag.projectid = id; } else { id = ""; ViewBag.projectid = ""; } //取得表單狀態參考資料 SelectList status = new SelectList(SystemParameter.getSystemPara("ExpenseForm"), "KEY_FIELD", "VALUE_FIELD"); ViewData.Add("status", status); Flow4CompanyExpense s = new Flow4CompanyExpense(); List <ExpenseFlowTask> lstEXP = s.getCompanyExpenseRequest(Request["occurred_date"], Request["subjectname"], Request["expid"], id, null); return(View(lstEXP)); }