public int UpdateMachine(int deleteOldMachineAddr,int deleteNewMachineAddr) { using(MachinesDA machineDA = new MachinesDA()) { return machineDA.UpdateMachine(deleteOldMachineAddr,deleteNewMachineAddr); } }
public int InsertClassMachine(int machineAddr,int machineVolumn) { using(MachinesDA machineDA = new MachinesDA()) { return machineDA.InsertClassMachine(machineAddr,machineVolumn); } }
public int InsertMachine(int machineAddr) { using(MachinesDA machineDA = new MachinesDA()) { return machineDA.InsertMachine(machineAddr); } }
public int DeleteMachine(int deleteMachineAddr) { using(MachinesDA machineDA = new MachinesDA()) { return machineDA.DeleteMachine(deleteMachineAddr); } }
public DataSet GetClassMachineAddrList() { using(MachinesDA machineDA = new MachinesDA()) { return machineDA.GetClassMachineAddrList(); } }
public int CreateClassMachine() { using(MachinesDA machineDA = new MachinesDA()) { return machineDA.CreateClassMachine(); } }
public static ArrayList GetUnAuthorizedHardWare() { DataSet dsMachineList = new MachinesDA().GetMachineAddrList(); if ( dsMachineList != null ) { if ( dsMachineList.Tables[0].Rows.Count > 0 ) { foreach ( DataRow dr in dsMachineList.Tables[0].Rows ) _unAuthorizedHardWare.Add(Convert.ToInt32(dr["machine_address"])); _unAuthorizedHardWare.Sort(); return _unAuthorizedHardWare; } else return null; } else return null; }