예제 #1
0
 public void houseInfo(Inhouse info)
 {
     inHouseID    = info.getInHouseID();
     outSourcedID = info.getoutsourcedID();
     if (inHouseID == 1)
     {
         machineID   = info.getMachineID();
         companyName = "";
     }
 }
예제 #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;
     }
 }