Example #1
0
        /// <summary>
        /// 查询入库 (当上架表有上架信息的时候查新上架表)
        /// </summary>
        /// <returns></returns>
        //public Response<Shelves.GetShelvesByConditionResponse> GetReceiptReceiving(Shelves.GetShelvesByConditionRequest Request)
        //{
        //    Response<Shelves.GetShelvesByConditionResponse> response = new Response<Shelves.GetShelvesByConditionResponse>() { Result = new Shelves.GetShelvesByConditionResponse() };
        //    try
        //    {
        //        ShelvesManagementAccessor accessor = new ShelvesManagementAccessor();

        //        response.Result = accessor.GetReceiptReceiving(Request.SearchCondition);
        //        response.IsSuccess = true;
        //    }
        //    catch (Exception ex)
        //    {
        //        response.Exception = ex;
        //        response.IsSuccess = false;
        //    }

        //    return response;
        //}
        /// <summary>
        /// 上架
        /// </summary>
        /// <param name="Request"></param>
        /// <returns></returns>
        public bool InsertReceiptReceiving(Shelves.GetShelvesByConditionRequest Request)
        {
            //Response<GetShelvesByConditionResponse> response = new Response<GetShelvesByConditionResponse>() { Result = new GetShelvesByConditionResponse() };

            bool IsSuccess = false;

            try
            {
                ShelvesManagementAccessor accessor = new ShelvesManagementAccessor();
                //response.Result.ReceiptReceiving
                IsSuccess = accessor.InsertReceiptReceiving(Request.receiptReceiving, Request.User);
                //response.IsSuccess = true;
            }
            catch (Exception ex)
            {
                //response.Exception = ex;
                //response.IsSuccess = false;
            }
            return(IsSuccess);
        }
Example #2
0
        /// <summary>
        /// 查询入库  (当上架表没有上架信息的时候再其他表查询)
        /// </summary>
        /// <returns></returns>
        public Response <Shelves.GetShelvesByConditionResponse> GetShelves(Shelves.GetShelvesByConditionRequest Request)
        {
            Response <Shelves.GetShelvesByConditionResponse> response = new Response <Shelves.GetShelvesByConditionResponse>()
            {
                Result = new Shelves.GetShelvesByConditionResponse()
            };

            try
            {
                ShelvesManagementAccessor accessor = new ShelvesManagementAccessor();

                response.Result    = accessor.GetShelves(Request.SearchCondition);
                response.IsSuccess = true;
            }
            catch (Exception ex)
            {
                response.Exception = ex;
                response.IsSuccess = false;
            }

            return(response);
        }
Example #3
0
        /// <summary>
        /// Execl批量上架
        /// </summary>
        /// <param name="Request"></param>
        /// <returns></returns>
        public Response <GetShelvesByConditionRequest> InsertReceiptReceivingExecl(Shelves.GetShelvesByConditionRequest Request)
        {
            Response <GetShelvesByConditionRequest> response = new Response <GetShelvesByConditionRequest>()
            {
                Result = new GetShelvesByConditionRequest()
            };

            string IsSuccess = "";

            try
            {
                ShelvesManagementAccessor accessor = new ShelvesManagementAccessor();
                //response.Result.ReceiptReceiving
                response.Result.receiptReceiving = accessor.InsertReceiptReceivingExecl(Request.receiptReceiving, Request.User);
                response.IsSuccess = true;
            }
            catch (Exception ex)
            {
                throw ex;
                response.IsSuccess = false;
            }
            return(response);
        }