Exemplo n.º 1
0
        public ResponseDS OutOrdersByStatus([FromBody] RequestOutOrdersByStatus r)
        {
            var obj = new OutOrdersR();

            try {
                var ds = obj.GetByStatus(r.BankId, (int)r.Status, r.EntryDate.ToString("yyyyMMdd"));
                return(new ResponseDS(ds));
            } catch (Exception ex) {
                return(new ResponseDS(ex.Message, ex.ToString()));
            } finally { obj.Dispose(); }
        }
Exemplo n.º 2
0
        public ResponseDS OutOrdersByTUN([FromBody] RequestOutOrdersByTUN r)
        {
            var obj = new OutOrdersR();

            try {
                var ds = obj.GetByTUN(r.BankId, r.Tun, r.Db);
                return(new ResponseDS(ds));
            } catch (Exception ex) {
                return(new ResponseDS(ex.Message, ex.ToString()));
            } finally { obj.Dispose(); }
        }
Exemplo n.º 3
0
        public ResponseDS OutOrdersByFwdFromId([FromBody] RequestOutOrdersByFwdFromId r)
        {
            var obj = new OutOrdersR();

            try {
                var ds = obj.GetbyFwdFromId(r.InOrderId, SQLSelectStatement.HintOption.NoHint, r.Db);
                return(new ResponseDS(ds));
            } catch (Exception ex) {
                return(new ResponseDS(ex.Message, ex.ToString()));
            } finally { obj.Dispose(); }
        }