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

		}