public void Insert(int?DeviceType, int?TestTypeId, string DeviceName, int?PortId, short?ManufactureId, bool?DeviceControl, bool?Valid, string Description, string BarcodeType, short SendType) { var item = new DDeviceList(); item.DeviceType = DeviceType; item.TestTypeId = TestTypeId; item.DeviceName = DeviceName; item.PortId = PortId; item.ManufactureId = ManufactureId; item.DeviceControl = DeviceControl; item.Valid = Valid; item.Description = Description; item.BarcodeType = BarcodeType; item.SendType = SendType; item.Save(UserName); }
public bool Destroy(object DeviceId) { return(DDeviceList.Destroy(DeviceId) == 1); }
public bool Delete(object DeviceId) { return(DDeviceList.Delete(DeviceId) == 1); }