Example #1
0
        private void UpdateMachineDowntime(int ms_id, string cid, int downtime)
        {
            if (ms_id == 0)
            {
                return;
            }

            if (cid.Trim().Length != 6)
            {
                return;
            }

            if (downtime == 0)
            {
                return;
            }

            CtxService service = new CtxService(null, cid);

            try
            {
                service.updateMachineDowntime(ms_id, downtime);
            } finally
            {
                service.Dispose();
            }
        }