Ejemplo n.º 1
0
 public void AddNewRecord()
 {
     MainRow = ContainerDataSet.ContainerType.NewContainerTypeRow();
     MainRow.Height = DEFAULT_HEIGHT;
     MainRow.ContainerKind = (int)ContainerKindEnum.Barrel;
     MainRow.Length = DEFAULT_LENGHT;
     MainRow.Capacity = DEFAULT_CAPACITY;
     MainRow.ContainerTypeName = string.Empty;
     MainRow.Width = 0;
     ContainerDataSet.ContainerType.AddContainerTypeRow(MainRow);
 }
Ejemplo n.º 2
0
        public void FillRecord(long containerTypeId)
        {
            DB.Fill(
                ContainerDataSet.ContainerType,
                new MyLib.DL.SQLSelect(
                ContainerDataSet.ContainerType.TableName,
                string.Format("WHERE {0} = {1}", ContainerDataSet.ContainerType.ContainerTypeIdColumn.ColumnName, containerTypeId)));

            MainRow = MainDataTable.Rows[0] as ContainerDataSet.ContainerTypeRow;
        }