public void Insert(decimal DeviceId, string DataTypeName, string StartChar, string StopChar, string SplitChar, string Descriptions)
        {
            DDeviceDatatype item = new DDeviceDatatype();

            item.DeviceId = DeviceId;

            item.DataTypeName = DataTypeName;

            item.StartChar = StartChar;

            item.StopChar = StopChar;

            item.SplitChar = SplitChar;

            item.Descriptions = Descriptions;


            item.Save(UserName);
        }
        public void Update(decimal DataTypeId, decimal DeviceId, string DataTypeName, string StartChar, string StopChar, string SplitChar, string Descriptions)
        {
            DDeviceDatatype item = new DDeviceDatatype();

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

            item.DataTypeId = DataTypeId;

            item.DeviceId = DeviceId;

            item.DataTypeName = DataTypeName;

            item.StartChar = StartChar;

            item.StopChar = StopChar;

            item.SplitChar = SplitChar;

            item.Descriptions = Descriptions;

            item.Save(UserName);
        }
 public bool Destroy(object DataTypeId)
 {
     return(DDeviceDatatype.Destroy(DataTypeId) == 1);
 }
 public bool Delete(object DataTypeId)
 {
     return(DDeviceDatatype.Delete(DataTypeId) == 1);
 }