Beispiel #1
0
//        private HTTPSyncService _SyncService;
//        private XWTBXCOA _StaffList;

        private void SyncAllAction_Execute(object sender, SimpleActionExecuteEventArgs e)
        {
            HTTPSyncService _SyncService = new HTTPSyncService(ConfigurationManager.AppSettings["IBS.SyncService"]);
            XWTBXCIA        lprm         = new XWTBXCIA();

            lprm.CMD = "CATALOG";
            XWTBXCOA      _StaffList     = _SyncService.XWTBXC0N(lprm);
            LongOperation long_operation = new StaffSyncLongOperation(StaffListSyncProcess, _SyncService, _StaffList);

            StartLongOperation(long_operation);
        }
Beispiel #2
0
        private void SyncChangesAction_Execute(object sender, SimpleActionExecuteEventArgs e)
        {
            HTTPSyncService _SyncService = new HTTPSyncService(ConfigurationManager.AppSettings["IBS.SyncService"]);
            XWTBXCIA        lprm         = new XWTBXCIA();

            lprm.CMD         = "CHANGES";
            lprm.DPGROUPCODE = 2;
            lprm.UPDTSTART   = new DateTime(2011, 01, 01);
            lprm.UPDTSTOP    = new DateTime(2011, 01, 31);
            XWTBXCOA      _StaffList     = _SyncService.XWTBXC0N(lprm);
            LongOperation long_operation = new StaffSyncLongOperation(StaffListSyncProcess, _SyncService, _StaffList);

            StartLongOperation(long_operation);
        }