Exemple #1
0
		public int UpdateMachine(int deleteOldMachineAddr,int deleteNewMachineAddr)
		{
			using(MachinesDA machineDA = new MachinesDA())
			{
				return machineDA.UpdateMachine(deleteOldMachineAddr,deleteNewMachineAddr);
			}
		}
Exemple #2
0
		public int InsertClassMachine(int machineAddr,int machineVolumn)
		{
			using(MachinesDA machineDA = new MachinesDA())
			{
				return machineDA.InsertClassMachine(machineAddr,machineVolumn);
			}
		}
Exemple #3
0
		public int InsertMachine(int machineAddr)
		{
			using(MachinesDA machineDA = new MachinesDA())
			{
				return machineDA.InsertMachine(machineAddr);
			}
		}
Exemple #4
0
		public int DeleteMachine(int deleteMachineAddr)
		{
			using(MachinesDA machineDA = new MachinesDA())
			{
				return machineDA.DeleteMachine(deleteMachineAddr);
			}
		}
Exemple #5
0
		public DataSet GetClassMachineAddrList()
		{
			using(MachinesDA machineDA = new MachinesDA())
			{
				return machineDA.GetClassMachineAddrList();
			}
		}
Exemple #6
0
		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;

		}