コード例 #1
0
        public IHttpActionResult GetSearchFilterData()
        {
            Library.DTO.Notification notification;
            object data = executor.CustomFunction(ControllerContext.GetAuthUserId(), "getsearchfilter", null, out notification);

            return(Ok(new Library.DTO.ReturnData <object>()
            {
                Data = data, Message = notification
            }));
        }
コード例 #2
0
        public IHttpActionResult Get(int id, int?workOrderID, int?opSequenceID, int?branchID)
        {
            // authentication
            if (!fwBll.CanPerformAction(ControllerContext.GetAuthUserId(), moduleCode, Library.DTO.ModuleAction.CanRead))
            {
                return(InternalServerError(new Exception(Properties.Resources.NOT_AUTHORIZED)));
            }
            Library.DTO.Notification     notification = new Library.DTO.Notification();
            System.Collections.Hashtable filters      = new System.Collections.Hashtable();
            filters["id"]           = id;
            filters["workOrderID"]  = workOrderID;
            filters["opSequenceID"] = opSequenceID;
            filters["branchID"]     = branchID;
            object data = executor.CustomFunction(ControllerContext.GetAuthUserId(), "GetData", filters, out notification);

            return(Ok(new Library.DTO.ReturnData <object>()
            {
                Data = data, Message = notification
            }));
        }
コード例 #3
0
        public IHttpActionResult GetDataSupportType()
        {
            if (!fwBll.CanPerformAction(ControllerContext.GetAuthUserId(), moduleCode_1, ModuleAction.CanRead))
            {
                return(InternalServerError(new Exception(Properties.Resources.NOT_AUTHORIZED)));
            }

            Hashtable filters = new Hashtable()
            {
                ["typeName"] = "QualityInspectionType"
            };

            object data = executor.CustomFunction(ControllerContext.GetAuthUserId(), "getqualityinspectiontype", filters, out Notification notification);

            return(Ok(new ReturnData <object>()
            {
                Data = data, Message = notification
            }));
        }
コード例 #4
0
        public IHttpActionResult Get(int id, int modelId, int sampleProductId, int offerSeasonDetailId, int?factoryId)
        {
            // authentication
            if (!fwBll.CanPerformAction(ControllerContext.GetAuthUserId(), moduleCode, Library.DTO.ModuleAction.CanRead))
            {
                return(InternalServerError(new Exception(Properties.Resources.NOT_AUTHORIZED)));
            }

            Library.DTO.Notification     notification;
            System.Collections.Hashtable input = new System.Collections.Hashtable();
            input["id"]                  = id;
            input["modelId"]             = modelId;
            input["sampleProductId"]     = sampleProductId;
            input["offerSeasonDetailId"] = offerSeasonDetailId;
            if (factoryId.HasValue)
            {
                input["factoryId"] = factoryId;
            }
            else
            {
                input["factoryId"] = 0;
            }

            object data = executor.CustomFunction(ControllerContext.GetAuthUserId(), "getdata", input, out notification);

            return(Ok(new Library.DTO.ReturnData <object>()
            {
                Data = data, Message = notification
            }));
        }
コード例 #5
0
        public IHttpActionResult GetClient2(DTO.Search searchInput)
        {
            object data = executor.CustomFunction(ControllerContext.GetAuthUserId(), "GetClient2", searchInput.Filters, out Notification notification);

            return(Ok(new ReturnData <object> {
                Data = data, Message = notification
            }));
        }