コード例 #1
0
        protected void OnEquipmentRegistered(object o, EquipmentCreatedEventArgs args)
        {
            var equipment = MyOrmDialog.UoW.GetById <Equipment>(args.Equipment[0].Id);

            equipmentToSetSerial.NewEquipment = equipment;
            equipmentToSetSerial.EquipmentId  = equipment.Id;
            equipmentToSetSerial.Returned     = true;
            //OnEquipmentListChanged();
        }
コード例 #2
0
 void OnSlaveDlgEquipmentCreated(object sender, EquipmentCreatedEventArgs e)
 {
     foreach (var equ in e.Equipment)
     {
         DocumentUoW.Root.AddItem(new IncomingInvoiceItem {
             Equipment    = equ,
             Nomenclature = equ.Nomenclature,
             Amount       = 1
         });
     }
 }