예제 #1
0
        public Respose REQUEST_Input(REQUEST req1)
        {
            Respose response = null;

            switch (req1.Request_Type)
            {
            case Request_Type.none:
                break;

            case Request_Type.SALES:
            {
                List <Sales> s = null;
                response = GetSalesReport(req1, out s);
            }
            break;

            case Request_Type.SALESIMS:
                break;

            case Request_Type.STORED:
                break;

            case Request_Type.MOVING:
                break;

            case Request_Type.GOODS_RECEIPT:
                break;

            default:
                break;
            }
            return(response);
        }
예제 #2
0
        public Respose GetSalesReport(REQUEST req1, out List <Sales> salesReport)
        {
            Respose resp = new Respose();

            salesReport = new List <Sales>();
            salesReport = GetSalesData(req1);
            if (salesReport.Count <= 0)
            {
                resp.status = status.error;
                resp.Error  = "ОШИБКА!";
            }
            else
            {
                resp.status = status.good;
            }

            return(resp);
        }