コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }
コード例 #3
0
 public bool Destroy(object DataTypeId)
 {
     return(DDeviceDatatype.Destroy(DataTypeId) == 1);
 }
コード例 #4
0
 public bool Delete(object DataTypeId)
 {
     return(DDeviceDatatype.Delete(DataTypeId) == 1);
 }