Exemple #1
0
        public static async Task DoSyncPartTran()
        {
            var hour = DateTime.Now.Hour;

            if (hour >= 8 && hour <= 20)
            {
                var users = new string[] { "pmn", "pms", "gvn", "gvs", "gvc", "gbn", "grv" };
                foreach (var user in users)
                {
                    var partTranService = new PartTranService();
                    await partTranService.SyncPartTrans(user.ToUpper());
                }
            }
        }
 public async Task DoSyncPartTran(Guid sessionId)
 {
     var partTranService = new PartTranService(sessionId);
     await partTranService.SyncPartTrans();
 }