Exemple #1
0
        public void outSourceInfo(Outsourced info)
        {
            outSourcedID = info.getoutsourcedID();
            inHouseID    = info.getInHouseID();

            if (outSourcedID == 1)
            {
                companyName = info.getCompanyName();
                machineID   = 0;
            }
        }
Exemple #2
0
 public void getPartINFO(int inHouse, int outsourced, string companyName, int machineID)
 {
     if (inHouse == 1)
     {
         house = true;
         Inhouse inHouseINFO = new Inhouse();
         inHouseINFO.setInhouse(inHouse);
         inHouseINFO.setMachineID(machineID);
         inHouseINFO.setoutsourced(outsourced);
         //return inHouseINFO;
         info = inHouseINFO;
     }
     else
     {
         house = false;
         Outsourced outSourceINFO = new Outsourced();
         outSourceINFO.setInhouse(inHouse);
         outSourceINFO.setoutsourced(outsourced);
         outSourceINFO.setCompanyName(companyName);
         infoO = outSourceINFO;
     }
 }