Пример #1
0
        public void Insert(int DeviceId, int DataControlId, int TestTypeId, string Description)
        {
            DDeviceDataControl item = new DDeviceDataControl();

            item.DeviceId = DeviceId;

            item.DataControlId = DataControlId;

            item.TestTypeId = TestTypeId;

            item.Description = Description;


            item.Save(UserName);
        }
Пример #2
0
        public void Update(int Id, int DeviceId, int DataControlId, int TestTypeId, string Description)
        {
            DDeviceDataControl item = new DDeviceDataControl();

            item.MarkOld();
            item.IsLoaded = true;

            item.Id = Id;

            item.DeviceId = DeviceId;

            item.DataControlId = DataControlId;

            item.TestTypeId = TestTypeId;

            item.Description = Description;

            item.Save(UserName);
        }
Пример #3
0
 public bool Destroy(object Id)
 {
     return(DDeviceDataControl.Destroy(Id) == 1);
 }
Пример #4
0
 public bool Delete(object Id)
 {
     return(DDeviceDataControl.Delete(Id) == 1);
 }