Beispiel #1
0
        /// <summary>
        /// Get checking status history of selected year.
        /// </summary>
        /// <param name="Year"></param>
        /// <returns></returns>
        public ActionResult IVS150_GetCheckingStatusHistory(string Year)
        {
            ObjectResultData            res  = new ObjectResultData();
            List <dtCheckingStatusList> list = new List <dtCheckingStatusList>();

            try
            {
                IInventoryHandler handlerInventory = ServiceContainer.GetService <IInventoryHandler>() as IInventoryHandler;

                list = handlerInventory.GetCheckingStatusList(Year, MiscType.C_INV_CHECKING_STATUS);

                // Language Mapping
                CommonUtil.MappingObjectLanguage <dtCheckingStatusList>(list);
            }
            catch (Exception ex)
            {
                res.AddErrorMessage(ex);
            }

            res.ResultData = CommonUtil.ConvertToXml <dtCheckingStatusList>(list, "Inventory\\IVS150_History", CommonUtil.GRID_EMPTY_TYPE.SEARCH);
            return(Json(res));
        }