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

		}