Пример #1
0
        public void IDSTransfer_GetNumDoc()
        {
            IDSTransfer ids = new IDSTransfer(service.Test);
            string      res = ids.AddUpdateUZ_DOC_To_DB_IDS(64566136, null);

            Console.WriteLine("num_doc = {0}", res);
        }
Пример #2
0
 public IHttpActionResult GetAddUpdateUZ_DOC_To_DB_IDS(int num, DateTime datetime)
 {
     try
     {
         IDSTransfer ids_tr  = new IDSTransfer(service.WebAPI_IDS);
         string      num_doc = ids_tr.AddUpdateUZ_DOC_To_DB_IDS(num, UZ.uz_status.uncredited, datetime); // добавить с ограничением до статуса "разкредитован"
         return(Ok(num_doc));
     }
     catch (Exception e)
     {
         return(BadRequest(e.Message));
     }
 }
Пример #3
0
        public IHttpActionResult PostUZ_DOC_To_DB_IDS([FromBody] UZ.UZ_DOC value)
        {
            try
            {
                IDSTransfer ids_tr = new IDSTransfer(service.WebAPI_IDS);

                string num_doc = ids_tr.AddUpdateUZ_DOC_To_DB_IDS(value);
                return(Ok(num_doc));
            }
            catch (Exception e)
            {
                return(BadRequest(e.Message));
            }
        }