示例#1
0
 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());
 }
示例#2
0
        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));
        }
示例#3
0
 public ActionResult Index()
 {
     ViewBag.ParamTypes    = new SelectList(WMS_ReportParamModel.GetParamType(), "TypeCode", "TypeName");
     ViewBag.ParamElements = new SelectList(WMS_ReportParamModel.GetParamElement(), "ElementCode", "ElementName");
     return(View());
 }