コード例 #1
0
        public frmConfig()
        {
            InitializeComponent();

            //DDPImportHelper helper = new DDPImportHelper();
            //helper.Import(@"D:\wdir\LRIT\lastDoc\DDP.Full.19-65.xml");

            //DDPImportHelper helper = new DDPImportHelper();
            //helper.UpdateIncremental(File.Open(@"C:\Documents and Settings\Owner\Desktop\DDP.Incremental.xml", FileMode.Open));

            //var d = new DDPVersionManager();
            //var v = d.DDPFromDate(DateTime.UtcNow.AddYears(-1));

            DDPManager mgr = new DDPManager();

            mgr.ProcessPendingUpdates();
        }
コード例 #2
0
ファイル: TaskRunner.cs プロジェクト: dargonar/LRIT
        public void run()
        {
            log.Info(string.Format("About to run {0}", m_name));

            BasicConfiguration config = BasicConfiguration.FromNameValueCollection(System.Configuration.ConfigurationManager.AppSettings);

            DataCenterDataAccess.Config.ConnectionString = config.ConnectionString;

            if (m_name == "sotask")
            {
                DDPManager mgr = new DDPManager();
                mgr.ProcessPendingUpdates();
                return;
            }

            if (m_name == "ddpupdatetask")
            {
                StandingOrderManager som = new StandingOrderManager();
                som.Process();
                return;
            }

            throw new NotImplementedException(string.Format("{0} task not implemented", m_name));
        }