示例#1
0
        private void CreateCk5XmlCancel(CK5 ck5)
        {
            //create xml file status 03
            var ck5Writer = new XmlCK5DataWriter();

            BLLMapper.InitializeCK5();
            BLLMapper.Initialize();
            var outboundPath = ConfigurationManager.AppSettings["XmlOutboundPath"];
            var date         = DateTime.Now.ToString("yyyyMMdd");
            var time         = DateTime.Now.ToString("hhmmss");

            var fileName  = string.Format("CK5CAN_{0}-{1}-{2}.xml", ck5.SUBMISSION_NUMBER, date, time);
            var Ck5XmlDto = new CK5BLL(_xmlMapper.uow, new NullLogger()).GetCk5ForXmlById(ck5.CK5_ID);

            Ck5XmlDto.Ck5PathXml = Path.Combine(outboundPath, fileName);

            ck5Writer.CreateCK5Xml(Ck5XmlDto, "03");
        }