Exemplo n.º 1
0
        //
        // GET: /OT/

        /// <summary>
        /// 查找具体加班单
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public ActionResult ViewOTDetail([DataSourceRequest] DataSourceRequest dRequest, int Id)
        {
            try
            {
                var orderDetailResult   = OvertimeService.GetOvertimeDetailsByOrderID(Id);
                DataSourceResult result = new DataSourceResult()
                {
                    Data = orderDetailResult.Data,
                };
                return(Json(result));
            }
            catch (Exception ex)
            {
                return(Json(new { error = ex.Message }));
            }
        }