示例#1
0
        /// <summary>Зарегистрировать светильник на перемещение</summary>
        /// <param name="barcode">Штрихкод светильника</param>
        /// <param name="syncRef">Ссылка синхронизации</param>
        /// <param name="operation">Операция</param>
        /// <param name="map">Карта</param>
        /// <param name="register">Регістр</param>
        /// <param name="position">Позиція</param>
        public static void RegisterLighter(string barcode, string syncRef, OperationsWithLighters operation, int map, int register, int position)
        {
            string lampBarcode;
            string lampRef;
            string unitBarcode;
            string unitRef;

            //Корпус
            Movement caseMovement = new Movement(barcode, syncRef, operation, map, register, position);

            caseMovement.Write();

            //Лампа
            if (Cases.GetMovementInfo(TypeOfAccessories.Lamp, barcode, out lampBarcode, out lampRef))
            {
                Movement lampMovement = new Movement(lampBarcode, lampRef, operation, map, register, position);
                lampMovement.Write();
            }

            //Эл.блок
            if (Cases.GetMovementInfo(TypeOfAccessories.ElectronicUnit, barcode, out unitBarcode, out unitRef))
            {
                Movement unitMovement = new Movement(unitBarcode, unitRef, operation, map, register, position);
                unitMovement.Write();
            }
        }
示例#2
0
 /// <summary>Переміщення</summary>
 public Movement(string barcode, string syncRef, OperationsWithLighters operation, int map, int register, int position)
 {
     BarCode   = barcode;
     SyncRef   = syncRef;
     Operation = operation;
     Date      = DateTime.Now;
     Map       = map;
     Register  = register;
     Position  = position;
 }
示例#3
0
 /// <summary>����������</summary>
 public Movement(string barcode, string syncRef, OperationsWithLighters operation, int map, int register, int position)
 {
     BarCode = barcode;
     SyncRef = syncRef;
     Operation = operation;
     Date = DateTime.Now;
     Map = map;
     Register = register;
     Position = position;
 }
示例#4
0
 /// <summary>Зарегистрировать светильник на перемещение</summary>
 /// <param name="barcode">Штрихкод светильника</param>
 /// <param name="syncRef">Ссылка синхронизации</param>
 /// <param name="operation">Операция</param>
 public static void RegisterLighter(string barcode, string syncRef, OperationsWithLighters operation)
 {
     RegisterLighter(barcode, syncRef, operation, 0, 0, 0);
 }
示例#5
0
        /// <summary>���������������� ���������� �� �����������</summary>
        /// <param name="barcode">�������� �����������</param>
        /// <param name="syncRef">������ �������������</param>
        /// <param name="operation">��������</param>
        /// <param name="map">�����</param>
        /// <param name="register">������</param>
        /// <param name="position">�������</param>
        public static void RegisterLighter(string barcode, string syncRef, OperationsWithLighters operation, int map, int register, int position)
        {
            string lampBarcode;
            string lampRef;
            string unitBarcode;
            string unitRef;

            //������
            Movement caseMovement = new Movement(barcode, syncRef, operation, map, register, position);
            caseMovement.Write();

            //�����
            if (Cases.GetMovementInfo(TypeOfAccessories.Lamp, barcode, out lampBarcode, out lampRef))
            {
                Movement lampMovement = new Movement(lampBarcode, lampRef, operation, map, register, position);
                lampMovement.Write();
            }

            //��.����
            if (Cases.GetMovementInfo(TypeOfAccessories.ElectronicUnit, barcode, out unitBarcode, out unitRef))
            {
                Movement unitMovement = new Movement(unitBarcode, unitRef, operation, map, register, position);
                unitMovement.Write();
            }
        }
示例#6
0
 /// <summary>���������������� ���������� �� �����������</summary>
 /// <param name="barcode">�������� �����������</param>
 /// <param name="syncRef">������ �������������</param>
 /// <param name="operation">��������</param>
 public static void RegisterLighter(string barcode, string syncRef, OperationsWithLighters operation)
 {
     RegisterLighter(barcode, syncRef, operation, 0, 0, 0);
 }