public FormEquipmentSoftwareCreateUpd(EquipmentLogic equipmentLogic, SoftwareLogic softwareLogic, EquipmentSoftwareLogic eqSoftLogic)
 {
     InitializeComponent();
     this.equipmentLogic = equipmentLogic;
     this.softwareLogic  = softwareLogic;
     this.eqSoftLogic    = eqSoftLogic;
 }
예제 #2
0
파일: frmMain.cs 프로젝트: weimingtom/pap2
        void tvItemCategory_AfterSelect(object sender, TreeViewEventArgs e)
        {
            ItemCollection items = null;

            if (null == tvItemCategory.SelectedNode)
            {
                return;
            }
            if (e.Action == TreeViewAction.ByMouse)
            {
                int equipid = -1;
                equipid = (int)e.Node.Tag;
                if (equipid > -1)//only valid node can be process.
                {
                    Equipment equip = EquipmentLogic.GetOneEquipment(equipid);
                    items = ItemLogic.GetItemsByCategory(equip.Gener, equip.SubType, equip.DetailType);
                    _initItems(ref items);
                }
                else if (equipid == -1)
                {
                    items = ItemLogic.GetAllItems();
                    _initItems(ref items);
                }
            }
        }
예제 #3
0
 public FormEquipment(TypeLogic typeLogic, EmployeeLogic employeeLogic, SupplierLogic supplierLogic, EquipmentLogic equipmentLogic)
 {
     InitializeComponent();
     this.typeLogic      = typeLogic;
     this.employeeLogic  = employeeLogic;
     this.supplierLogic  = supplierLogic;
     this.equipmentLogic = equipmentLogic;
 }
 public EquipmentController(EquipmentLogic equipmentLogic)
 {
     _equipmentLogic = equipmentLogic;
 }
 public FormEquipmentByDates(EquipmentLogic equipmentLogic)
 {
     InitializeComponent();
     this.equipmentLogic = equipmentLogic;
 }
예제 #6
0
 public FormMain(EquipmentLogic equipmentLogic)
 {
     InitializeComponent();
     this.equipmentLogic = equipmentLogic;
 }