예제 #1
0
        /// <summary>
        /// 获取产线
        /// </summary>
        /// <param name="workshopNo"></param>
        /// <returns></returns>
        public ActionResult GetLine(string workshopNo)
        {
            var list = new List <LineEntity>();

            if (string.IsNullOrWhiteSpace(workshopNo))
            {
                list = lineOp.GetAllData();
            }
            else
            {
                list = lineOp.QueryList(_ => _.WorkShopNo == workshopNo);
            }
            return(Json(list, JsonRequestBehavior.AllowGet));
        }
예제 #2
0
 /// <summary>
 /// 获取下拉框数据源
 /// </summary>
 /// <returns></returns>
 public ActionResult GetSelectSource()
 {
     return(Json(new
     {
         workshops = wpOp.GetAllData(),
         lines = lineOp.GetAllData(),
         processes = psOp.GetAllData(),
         locs = locOp.GetAllData()
     }, JsonRequestBehavior.AllowGet));
 }
예제 #3
0
 /// <summary>
 /// 获取工序
 /// </summary>
 /// <returns></returns>
 public ActionResult GetProcess()
 {
     return(Json(psOp.GetAllData(), JsonRequestBehavior.AllowGet));
 }
예제 #4
0
 /// <summary>
 /// 获取车间
 /// </summary>
 /// <returns></returns>
 public ActionResult GetWorkShop()
 {
     return(Json(wpOp.GetAllData(), JsonRequestBehavior.AllowGet));
 }