public ActionResult Create() { ViewBag.Report = new SelectList(m_ReportBLL.GetList(ref setNoPagerAscById, ""), "Id", "ReportName"); ViewBag.ParamTypes = new SelectList(WMS_ReportParamModel.GetParamType(), "TypeCode", "TypeName"); ViewBag.ParamElements = new SelectList(WMS_ReportParamModel.GetParamElement(), "ElementCode", "ElementName"); return(View()); }
public ActionResult Edit(long id) { ViewBag.ParamTypes = new SelectList(WMS_ReportParamModel.GetParamType(), "TypeCode", "TypeName"); ViewBag.ParamElements = new SelectList(WMS_ReportParamModel.GetParamElement(), "ElementCode", "ElementName"); WMS_ReportParamModel entity = m_BLL.GetById(id); ViewBag.Report = new SelectList(m_ReportBLL.GetList(ref setNoPagerAscById, ""), "Id", "ReportName", entity.ReportId); return(View(entity)); }
public ActionResult Index() { ViewBag.ParamTypes = new SelectList(WMS_ReportParamModel.GetParamType(), "TypeCode", "TypeName"); ViewBag.ParamElements = new SelectList(WMS_ReportParamModel.GetParamElement(), "ElementCode", "ElementName"); return(View()); }