public ImportResuls() { InitializeComponent(); im = new ImportTicketModel(); shipment = new ShipmentModel(); dataGridViewX2.DataSource = im.SelectAllImportTicket(); dateTimeInput1.Value = DateTime.Now; dateTimeInput2.Value = DateTime.Now; dateTimeInput3.Value = DateTime.Now; }
public ImportModule() { InitializeComponent(); im = new ImportTicketModel(); shipments = new ShipmentModel(); this.textBoxUITypeEditor4.Button.Click += new System.EventHandler(this.textBoxUITypeEditor4_Click); this.textBoxUITypeEditor3.Button.Click += new System.EventHandler(this.textBoxUITypeEditor3_Click); this.textBoxUITypeEditor2.Button.Click += new System.EventHandler(this.textBoxUITypeEditor2_Click); this.textBoxUITypeEditor1.Button.Click += new System.EventHandler(this.textBoxUITypeEditor1_Click); textBoxUITypeEditor1.TextBox.Enabled = false; textBoxUITypeEditor2.TextBox.Enabled = false; textBoxUITypeEditor3.TextBox.Enabled = false; textBoxUITypeEditor4.TextBox.Enabled = false; }
public ViewModelImportTicket(TankModel tankData) { ImportTicketModel importModel = new ImportTicketModel(); importModel.StationName = tankData.StationName; importModel.TankId = tankData.TankId; importModel.FuelId = tankData.FuelId; importModel.MaxCapacity = tankData.MaxCapacity; importModel.TankLevel = tankData.FuelLevel; importModel.TankCapacity = tankData.Capacity; importModel.ImportDate = DateTime.Now; importModel.ImportCapacity = 0; importTicketData = importModel; fuel = BusinessHelper.FindFuelById(tankData.FuelId); SaveCommand = new RelayCommand <object>(DoSave, CanSave); ClearCommand = new RelayCommand <object>(DoClear); SaveSuccess = false; BusinessHelper.InitConnection(); }