/// <summary> /// Handles the CellValueNeeded event of the uxCustomerAddressDataGridView control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="T:System.Windows.Forms.DataGridViewCellValueEventArgs"/> instance containing the event data.</param> protected void OnCustomerAddressDataGridViewCellValueNeeded(object sender, System.Windows.Forms.DataGridViewCellValueEventArgs e) { switch (uxCustomerAddressDataGridView.Columns[e.ColumnIndex].Name) { case "uxCustomerIdDataGridViewColumn": e.Value = CustomerAddressList[e.RowIndex].CustomerId; break; case "uxAddressIdDataGridViewColumn": e.Value = CustomerAddressList[e.RowIndex].AddressId; break; case "uxAddressTypeIdDataGridViewColumn": e.Value = CustomerAddressList[e.RowIndex].AddressTypeId; break; case "uxRowguidDataGridViewColumn": e.Value = CustomerAddressList[e.RowIndex].Rowguid; break; case "uxModifiedDateDataGridViewColumn": e.Value = CustomerAddressList[e.RowIndex].ModifiedDate; break; default: break; } }
/// <summary> /// Handles the CellValueNeeded event of the uxCreditCardDataGridView control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="T:System.Windows.Forms.DataGridViewCellValueEventArgs"/> instance containing the event data.</param> protected void OnCreditCardDataGridViewCellValueNeeded(object sender, System.Windows.Forms.DataGridViewCellValueEventArgs e) { switch (uxCreditCardDataGridView.Columns[e.ColumnIndex].Name) { case "uxCreditCardIdDataGridViewColumn": e.Value = CreditCardList[e.RowIndex].CreditCardId; break; case "uxCardTypeDataGridViewColumn": e.Value = CreditCardList[e.RowIndex].CardType; break; case "uxCardNumberDataGridViewColumn": e.Value = CreditCardList[e.RowIndex].CardNumber; break; case "uxExpMonthDataGridViewColumn": e.Value = CreditCardList[e.RowIndex].ExpMonth; break; case "uxExpYearDataGridViewColumn": e.Value = CreditCardList[e.RowIndex].ExpYear; break; case "uxModifiedDateDataGridViewColumn": e.Value = CreditCardList[e.RowIndex].ModifiedDate; break; default: break; } }
/// <summary> /// Handles the CellValuePushed event of the uxProductModelDataGridView control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="T:System.Windows.Forms.DataGridViewCellValueEventArgs"/> instance containing the event data.</param> protected void OnProductModelDataGridViewCellValuePushed(object sender, System.Windows.Forms.DataGridViewCellValueEventArgs e) { switch (uxProductModelDataGridView.Columns[e.ColumnIndex].Name) { case "uxProductModelIdDataGridViewColumn": ProductModelList[e.RowIndex].ProductModelId = (System.Int32)e.Value; break; case "uxNameDataGridViewColumn": ProductModelList[e.RowIndex].Name = (System.String)e.Value; break; case "uxCatalogDescriptionDataGridViewColumn": ProductModelList[e.RowIndex].CatalogDescription = (string)e.Value; break; case "uxInstructionsDataGridViewColumn": ProductModelList[e.RowIndex].Instructions = (string)e.Value; break; case "uxRowguidDataGridViewColumn": ProductModelList[e.RowIndex].Rowguid = (System.Guid)e.Value; break; case "uxModifiedDateDataGridViewColumn": ProductModelList[e.RowIndex].ModifiedDate = (System.DateTime)e.Value; break; default: break; } }
/// <summary> /// Handles the CellValuePushed event of the uxStoreContactDataGridView control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="T:System.Windows.Forms.DataGridViewCellValueEventArgs"/> instance containing the event data.</param> protected void OnStoreContactDataGridViewCellValuePushed(object sender, System.Windows.Forms.DataGridViewCellValueEventArgs e) { switch (uxStoreContactDataGridView.Columns[e.ColumnIndex].Name) { case "uxCustomerIdDataGridViewColumn": StoreContactList[e.RowIndex].CustomerId = (System.Int32)e.Value; break; case "uxContactIdDataGridViewColumn": StoreContactList[e.RowIndex].ContactId = (System.Int32)e.Value; break; case "uxContactTypeIdDataGridViewColumn": StoreContactList[e.RowIndex].ContactTypeId = (System.Int32)e.Value; break; case "uxRowguidDataGridViewColumn": StoreContactList[e.RowIndex].Rowguid = (System.Guid)e.Value; break; case "uxModifiedDateDataGridViewColumn": StoreContactList[e.RowIndex].ModifiedDate = (System.DateTime)e.Value; break; default: break; } }
/// <summary> /// Handles the CellValuePushed event of the uxLocationDataGridView control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="T:System.Windows.Forms.DataGridViewCellValueEventArgs"/> instance containing the event data.</param> protected void OnLocationDataGridViewCellValuePushed(object sender, System.Windows.Forms.DataGridViewCellValueEventArgs e) { switch (uxLocationDataGridView.Columns[e.ColumnIndex].Name) { case "uxLocationIdDataGridViewColumn": LocationList[e.RowIndex].LocationId = (System.Int16)e.Value; break; case "uxNameDataGridViewColumn": LocationList[e.RowIndex].Name = (System.String)e.Value; break; case "uxCostRateDataGridViewColumn": LocationList[e.RowIndex].CostRate = (System.Decimal)e.Value; break; case "uxAvailabilityDataGridViewColumn": LocationList[e.RowIndex].Availability = (System.Decimal)e.Value; break; case "uxModifiedDateDataGridViewColumn": LocationList[e.RowIndex].ModifiedDate = (System.DateTime)e.Value; break; default: break; } }
/// <summary> /// Handles the CellValueNeeded event of the uxLocationDataGridView control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="T:System.Windows.Forms.DataGridViewCellValueEventArgs"/> instance containing the event data.</param> protected void OnLocationDataGridViewCellValueNeeded(object sender, System.Windows.Forms.DataGridViewCellValueEventArgs e) { switch (uxLocationDataGridView.Columns[e.ColumnIndex].Name) { case "uxLocationIdDataGridViewColumn": e.Value = LocationList[e.RowIndex].LocationId; break; case "uxNameDataGridViewColumn": e.Value = LocationList[e.RowIndex].Name; break; case "uxCostRateDataGridViewColumn": e.Value = LocationList[e.RowIndex].CostRate; break; case "uxAvailabilityDataGridViewColumn": e.Value = LocationList[e.RowIndex].Availability; break; case "uxModifiedDateDataGridViewColumn": e.Value = LocationList[e.RowIndex].ModifiedDate; break; default: break; } }
/// <summary> /// Handles the CellValuePushed event of the uxStoreDataGridView control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="T:System.Windows.Forms.DataGridViewCellValueEventArgs"/> instance containing the event data.</param> protected void OnStoreDataGridViewCellValuePushed(object sender, System.Windows.Forms.DataGridViewCellValueEventArgs e) { switch (uxStoreDataGridView.Columns[e.ColumnIndex].Name) { case "uxCustomerIdDataGridViewColumn": StoreList[e.RowIndex].CustomerId = (System.Int32)e.Value; break; case "uxNameDataGridViewColumn": StoreList[e.RowIndex].Name = (System.String)e.Value; break; case "uxSalesPersonIdDataGridViewColumn": StoreList[e.RowIndex].SalesPersonId = (System.Int32?)e.Value; break; case "uxDemographicsDataGridViewColumn": StoreList[e.RowIndex].Demographics = (string)e.Value; break; case "uxRowguidDataGridViewColumn": StoreList[e.RowIndex].Rowguid = (System.Guid)e.Value; break; case "uxModifiedDateDataGridViewColumn": StoreList[e.RowIndex].ModifiedDate = (System.DateTime)e.Value; break; default: break; } }
/// <summary> /// Handles the CellValueNeeded event of the uxStoreDataGridView control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="T:System.Windows.Forms.DataGridViewCellValueEventArgs"/> instance containing the event data.</param> protected void OnStoreDataGridViewCellValueNeeded(object sender, System.Windows.Forms.DataGridViewCellValueEventArgs e) { switch (uxStoreDataGridView.Columns[e.ColumnIndex].Name) { case "uxCustomerIdDataGridViewColumn": e.Value = StoreList[e.RowIndex].CustomerId; break; case "uxNameDataGridViewColumn": e.Value = StoreList[e.RowIndex].Name; break; case "uxSalesPersonIdDataGridViewColumn": e.Value = StoreList[e.RowIndex].SalesPersonId; break; case "uxDemographicsDataGridViewColumn": e.Value = StoreList[e.RowIndex].Demographics; break; case "uxRowguidDataGridViewColumn": e.Value = StoreList[e.RowIndex].Rowguid; break; case "uxModifiedDateDataGridViewColumn": e.Value = StoreList[e.RowIndex].ModifiedDate; break; default: break; } }
/// <summary> /// Handles the CellValuePushed event of the uxShoppingCartItemDataGridView control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="T:System.Windows.Forms.DataGridViewCellValueEventArgs"/> instance containing the event data.</param> protected void OnShoppingCartItemDataGridViewCellValuePushed(object sender, System.Windows.Forms.DataGridViewCellValueEventArgs e) { switch (uxShoppingCartItemDataGridView.Columns[e.ColumnIndex].Name) { case "uxShoppingCartItemIdDataGridViewColumn": ShoppingCartItemList[e.RowIndex].ShoppingCartItemId = (System.Int32)e.Value; break; case "uxShoppingCartIdDataGridViewColumn": ShoppingCartItemList[e.RowIndex].ShoppingCartId = (System.String)e.Value; break; case "uxQuantityDataGridViewColumn": ShoppingCartItemList[e.RowIndex].Quantity = (System.Int32)e.Value; break; case "uxProductIdDataGridViewColumn": ShoppingCartItemList[e.RowIndex].ProductId = (System.Int32)e.Value; break; case "uxDateCreatedDataGridViewColumn": ShoppingCartItemList[e.RowIndex].DateCreated = (System.DateTime)e.Value; break; case "uxModifiedDateDataGridViewColumn": ShoppingCartItemList[e.RowIndex].ModifiedDate = (System.DateTime)e.Value; break; default: break; } }
/// <summary> /// Handles the CellValuePushed event of the uxShipMethodDataGridView control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="T:System.Windows.Forms.DataGridViewCellValueEventArgs"/> instance containing the event data.</param> protected void OnShipMethodDataGridViewCellValuePushed(object sender, System.Windows.Forms.DataGridViewCellValueEventArgs e) { switch (uxShipMethodDataGridView.Columns[e.ColumnIndex].Name) { case "uxShipMethodIdDataGridViewColumn": ShipMethodList[e.RowIndex].ShipMethodId = (System.Int32)e.Value; break; case "uxNameDataGridViewColumn": ShipMethodList[e.RowIndex].Name = (System.String)e.Value; break; case "uxShipBaseDataGridViewColumn": ShipMethodList[e.RowIndex].ShipBase = (System.Decimal)e.Value; break; case "uxShipRateDataGridViewColumn": ShipMethodList[e.RowIndex].ShipRate = (System.Decimal)e.Value; break; case "uxRowguidDataGridViewColumn": ShipMethodList[e.RowIndex].Rowguid = (System.Guid)e.Value; break; case "uxModifiedDateDataGridViewColumn": ShipMethodList[e.RowIndex].ModifiedDate = (System.DateTime)e.Value; break; default: break; } }
/// <summary> /// Handles the CellValueNeeded event of the uxProductPhotoDataGridView control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="T:System.Windows.Forms.DataGridViewCellValueEventArgs"/> instance containing the event data.</param> protected void OnProductPhotoDataGridViewCellValueNeeded(object sender, System.Windows.Forms.DataGridViewCellValueEventArgs e) { switch (uxProductPhotoDataGridView.Columns[e.ColumnIndex].Name) { case "uxProductPhotoIdDataGridViewColumn": e.Value = ProductPhotoList[e.RowIndex].ProductPhotoId; break; case "uxThumbNailPhotoDataGridViewColumn": e.Value = ProductPhotoList[e.RowIndex].ThumbNailPhoto; break; case "uxThumbnailPhotoFileNameDataGridViewColumn": e.Value = ProductPhotoList[e.RowIndex].ThumbnailPhotoFileName; break; case "uxLargePhotoDataGridViewColumn": e.Value = ProductPhotoList[e.RowIndex].LargePhoto; break; case "uxLargePhotoFileNameDataGridViewColumn": e.Value = ProductPhotoList[e.RowIndex].LargePhotoFileName; break; case "uxModifiedDateDataGridViewColumn": e.Value = ProductPhotoList[e.RowIndex].ModifiedDate; break; default: break; } }
/// <summary> /// Handles the CellValuePushed event of the uxCustomerDataGridView control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="T:System.Windows.Forms.DataGridViewCellValueEventArgs"/> instance containing the event data.</param> protected void OnCustomerDataGridViewCellValuePushed(object sender, System.Windows.Forms.DataGridViewCellValueEventArgs e) { switch (uxCustomerDataGridView.Columns[e.ColumnIndex].Name) { case "uxCustomerIdDataGridViewColumn": CustomerList[e.RowIndex].CustomerId = (System.Int32)e.Value; break; case "uxTerritoryIdDataGridViewColumn": CustomerList[e.RowIndex].TerritoryId = (System.Int32?)e.Value; break; case "uxAccountNumberDataGridViewColumn": CustomerList[e.RowIndex].AccountNumber = (System.String)e.Value; break; case "uxCustomerTypeDataGridViewColumn": CustomerList[e.RowIndex].CustomerType = (System.String)e.Value; break; case "uxRowguidDataGridViewColumn": CustomerList[e.RowIndex].Rowguid = (System.Guid)e.Value; break; case "uxModifiedDateDataGridViewColumn": CustomerList[e.RowIndex].ModifiedDate = (System.DateTime)e.Value; break; default: break; } }
/// <summary> /// Handles the CellValuePushed event of the uxShiftDataGridView control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="T:System.Windows.Forms.DataGridViewCellValueEventArgs"/> instance containing the event data.</param> protected void OnShiftDataGridViewCellValuePushed(object sender, System.Windows.Forms.DataGridViewCellValueEventArgs e) { switch (uxShiftDataGridView.Columns[e.ColumnIndex].Name) { case "uxShiftIdDataGridViewColumn": ShiftList[e.RowIndex].ShiftId = (System.Byte)e.Value; break; case "uxNameDataGridViewColumn": ShiftList[e.RowIndex].Name = (System.String)e.Value; break; case "uxStartTimeDataGridViewColumn": ShiftList[e.RowIndex].StartTime = (System.DateTime)e.Value; break; case "uxEndTimeDataGridViewColumn": ShiftList[e.RowIndex].EndTime = (System.DateTime)e.Value; break; case "uxModifiedDateDataGridViewColumn": ShiftList[e.RowIndex].ModifiedDate = (System.DateTime)e.Value; break; default: break; } }
/// <summary> /// Handles the CellValueNeeded event of the uxCustomerDataGridView control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="T:System.Windows.Forms.DataGridViewCellValueEventArgs"/> instance containing the event data.</param> protected void OnCustomerDataGridViewCellValueNeeded(object sender, System.Windows.Forms.DataGridViewCellValueEventArgs e) { switch (uxCustomerDataGridView.Columns[e.ColumnIndex].Name) { case "uxCustomerIdDataGridViewColumn": e.Value = CustomerList[e.RowIndex].CustomerId; break; case "uxTerritoryIdDataGridViewColumn": e.Value = CustomerList[e.RowIndex].TerritoryId; break; case "uxAccountNumberDataGridViewColumn": e.Value = CustomerList[e.RowIndex].AccountNumber; break; case "uxCustomerTypeDataGridViewColumn": e.Value = CustomerList[e.RowIndex].CustomerType; break; case "uxRowguidDataGridViewColumn": e.Value = CustomerList[e.RowIndex].Rowguid; break; case "uxModifiedDateDataGridViewColumn": e.Value = CustomerList[e.RowIndex].ModifiedDate; break; default: break; } }
/// <summary> /// Handles the CellValuePushed event of the uxCreditCardDataGridView control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="T:System.Windows.Forms.DataGridViewCellValueEventArgs"/> instance containing the event data.</param> protected void OnCreditCardDataGridViewCellValuePushed(object sender, System.Windows.Forms.DataGridViewCellValueEventArgs e) { switch (uxCreditCardDataGridView.Columns[e.ColumnIndex].Name) { case "uxCreditCardIdDataGridViewColumn": CreditCardList[e.RowIndex].CreditCardId = (System.Int32)e.Value; break; case "uxCardTypeDataGridViewColumn": CreditCardList[e.RowIndex].CardType = (System.String)e.Value; break; case "uxCardNumberDataGridViewColumn": CreditCardList[e.RowIndex].CardNumber = (System.String)e.Value; break; case "uxExpMonthDataGridViewColumn": CreditCardList[e.RowIndex].ExpMonth = (System.Byte)e.Value; break; case "uxExpYearDataGridViewColumn": CreditCardList[e.RowIndex].ExpYear = (System.Int16)e.Value; break; case "uxModifiedDateDataGridViewColumn": CreditCardList[e.RowIndex].ModifiedDate = (System.DateTime)e.Value; break; default: break; } }
/// <summary> /// Handles the CellValuePushed event of the uxProductPhotoDataGridView control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="T:System.Windows.Forms.DataGridViewCellValueEventArgs"/> instance containing the event data.</param> protected void OnProductPhotoDataGridViewCellValuePushed(object sender, System.Windows.Forms.DataGridViewCellValueEventArgs e) { switch (uxProductPhotoDataGridView.Columns[e.ColumnIndex].Name) { case "uxProductPhotoIdDataGridViewColumn": ProductPhotoList[e.RowIndex].ProductPhotoId = (System.Int32)e.Value; break; case "uxThumbNailPhotoDataGridViewColumn": ProductPhotoList[e.RowIndex].ThumbNailPhoto = (System.Byte[])e.Value; break; case "uxThumbnailPhotoFileNameDataGridViewColumn": ProductPhotoList[e.RowIndex].ThumbnailPhotoFileName = (System.String)e.Value; break; case "uxLargePhotoDataGridViewColumn": ProductPhotoList[e.RowIndex].LargePhoto = (System.Byte[])e.Value; break; case "uxLargePhotoFileNameDataGridViewColumn": ProductPhotoList[e.RowIndex].LargePhotoFileName = (System.String)e.Value; break; case "uxModifiedDateDataGridViewColumn": ProductPhotoList[e.RowIndex].ModifiedDate = (System.DateTime)e.Value; break; default: break; } }
/// <summary> /// Handles the CellValueNeeded event of the uxShipMethodDataGridView control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="T:System.Windows.Forms.DataGridViewCellValueEventArgs"/> instance containing the event data.</param> protected void OnShipMethodDataGridViewCellValueNeeded(object sender, System.Windows.Forms.DataGridViewCellValueEventArgs e) { switch (uxShipMethodDataGridView.Columns[e.ColumnIndex].Name) { case "uxShipMethodIdDataGridViewColumn": e.Value = ShipMethodList[e.RowIndex].ShipMethodId; break; case "uxNameDataGridViewColumn": e.Value = ShipMethodList[e.RowIndex].Name; break; case "uxShipBaseDataGridViewColumn": e.Value = ShipMethodList[e.RowIndex].ShipBase; break; case "uxShipRateDataGridViewColumn": e.Value = ShipMethodList[e.RowIndex].ShipRate; break; case "uxRowguidDataGridViewColumn": e.Value = ShipMethodList[e.RowIndex].Rowguid; break; case "uxModifiedDateDataGridViewColumn": e.Value = ShipMethodList[e.RowIndex].ModifiedDate; break; default: break; } }
/// <summary> /// Handles the CellValueNeeded event of the uxProductModelDataGridView control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="T:System.Windows.Forms.DataGridViewCellValueEventArgs"/> instance containing the event data.</param> protected void OnProductModelDataGridViewCellValueNeeded(object sender, System.Windows.Forms.DataGridViewCellValueEventArgs e) { switch (uxProductModelDataGridView.Columns[e.ColumnIndex].Name) { case "uxProductModelIdDataGridViewColumn": e.Value = ProductModelList[e.RowIndex].ProductModelId; break; case "uxNameDataGridViewColumn": e.Value = ProductModelList[e.RowIndex].Name; break; case "uxCatalogDescriptionDataGridViewColumn": e.Value = ProductModelList[e.RowIndex].CatalogDescription; break; case "uxInstructionsDataGridViewColumn": e.Value = ProductModelList[e.RowIndex].Instructions; break; case "uxRowguidDataGridViewColumn": e.Value = ProductModelList[e.RowIndex].Rowguid; break; case "uxModifiedDateDataGridViewColumn": e.Value = ProductModelList[e.RowIndex].ModifiedDate; break; default: break; } }
/// <summary> /// Handles the CellValuePushed event of the uxWorkOrderRoutingDataGridView control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="T:System.Windows.Forms.DataGridViewCellValueEventArgs"/> instance containing the event data.</param> protected void OnWorkOrderRoutingDataGridViewCellValuePushed(object sender, System.Windows.Forms.DataGridViewCellValueEventArgs e) { switch (uxWorkOrderRoutingDataGridView.Columns[e.ColumnIndex].Name) { case "uxWorkOrderIdDataGridViewColumn": WorkOrderRoutingList[e.RowIndex].WorkOrderId = (System.Int32)e.Value; break; case "uxProductIdDataGridViewColumn": WorkOrderRoutingList[e.RowIndex].ProductId = (System.Int32)e.Value; break; case "uxOperationSequenceDataGridViewColumn": WorkOrderRoutingList[e.RowIndex].OperationSequence = (System.Int16)e.Value; break; case "uxLocationIdDataGridViewColumn": WorkOrderRoutingList[e.RowIndex].LocationId = (System.Int16)e.Value; break; case "uxScheduledStartDateDataGridViewColumn": WorkOrderRoutingList[e.RowIndex].ScheduledStartDate = (System.DateTime)e.Value; break; case "uxScheduledEndDateDataGridViewColumn": WorkOrderRoutingList[e.RowIndex].ScheduledEndDate = (System.DateTime)e.Value; break; case "uxActualStartDateDataGridViewColumn": WorkOrderRoutingList[e.RowIndex].ActualStartDate = (System.DateTime?)e.Value; break; case "uxActualEndDateDataGridViewColumn": WorkOrderRoutingList[e.RowIndex].ActualEndDate = (System.DateTime?)e.Value; break; case "uxActualResourceHrsDataGridViewColumn": WorkOrderRoutingList[e.RowIndex].ActualResourceHrs = (System.Decimal?)e.Value; break; case "uxPlannedCostDataGridViewColumn": WorkOrderRoutingList[e.RowIndex].PlannedCost = (System.Decimal)e.Value; break; case "uxActualCostDataGridViewColumn": WorkOrderRoutingList[e.RowIndex].ActualCost = (System.Decimal?)e.Value; break; case "uxModifiedDateDataGridViewColumn": WorkOrderRoutingList[e.RowIndex].ModifiedDate = (System.DateTime)e.Value; break; default: break; } }
/// <summary> /// Handles the CellValueNeeded event of the uxSpecialOfferDataGridView control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="T:System.Windows.Forms.DataGridViewCellValueEventArgs"/> instance containing the event data.</param> protected void OnSpecialOfferDataGridViewCellValueNeeded(object sender, System.Windows.Forms.DataGridViewCellValueEventArgs e) { switch (uxSpecialOfferDataGridView.Columns[e.ColumnIndex].Name) { case "uxSpecialOfferIdDataGridViewColumn": e.Value = SpecialOfferList[e.RowIndex].SpecialOfferId; break; case "uxDescriptionDataGridViewColumn": e.Value = SpecialOfferList[e.RowIndex].Description; break; case "uxDiscountPctDataGridViewColumn": e.Value = SpecialOfferList[e.RowIndex].DiscountPct; break; case "uxTypeDataGridViewColumn": e.Value = SpecialOfferList[e.RowIndex].Type; break; case "uxCategoryDataGridViewColumn": e.Value = SpecialOfferList[e.RowIndex].Category; break; case "uxStartDateDataGridViewColumn": e.Value = SpecialOfferList[e.RowIndex].StartDate; break; case "uxEndDateDataGridViewColumn": e.Value = SpecialOfferList[e.RowIndex].EndDate; break; case "uxMinQtyDataGridViewColumn": e.Value = SpecialOfferList[e.RowIndex].MinQty; break; case "uxMaxQtyDataGridViewColumn": e.Value = SpecialOfferList[e.RowIndex].MaxQty; break; case "uxRowguidDataGridViewColumn": e.Value = SpecialOfferList[e.RowIndex].Rowguid; break; case "uxModifiedDateDataGridViewColumn": e.Value = SpecialOfferList[e.RowIndex].ModifiedDate; break; default: break; } }
/// <summary> /// Handles the CellValuePushed event of the uxSalesOrderDetailDataGridView control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="T:System.Windows.Forms.DataGridViewCellValueEventArgs"/> instance containing the event data.</param> protected void OnSalesOrderDetailDataGridViewCellValuePushed(object sender, System.Windows.Forms.DataGridViewCellValueEventArgs e) { switch (uxSalesOrderDetailDataGridView.Columns[e.ColumnIndex].Name) { case "uxSalesOrderIdDataGridViewColumn": SalesOrderDetailList[e.RowIndex].SalesOrderId = (System.Int32)e.Value; break; case "uxSalesOrderDetailIdDataGridViewColumn": SalesOrderDetailList[e.RowIndex].SalesOrderDetailId = (System.Int32)e.Value; break; case "uxCarrierTrackingNumberDataGridViewColumn": SalesOrderDetailList[e.RowIndex].CarrierTrackingNumber = (System.String)e.Value; break; case "uxOrderQtyDataGridViewColumn": SalesOrderDetailList[e.RowIndex].OrderQty = (System.Int16)e.Value; break; case "uxProductIdDataGridViewColumn": SalesOrderDetailList[e.RowIndex].ProductId = (System.Int32)e.Value; break; case "uxSpecialOfferIdDataGridViewColumn": SalesOrderDetailList[e.RowIndex].SpecialOfferId = (System.Int32)e.Value; break; case "uxUnitPriceDataGridViewColumn": SalesOrderDetailList[e.RowIndex].UnitPrice = (System.Decimal)e.Value; break; case "uxUnitPriceDiscountDataGridViewColumn": SalesOrderDetailList[e.RowIndex].UnitPriceDiscount = (System.Decimal)e.Value; break; case "uxLineTotalDataGridViewColumn": SalesOrderDetailList[e.RowIndex].LineTotal = (System.Decimal)e.Value; break; case "uxRowguidDataGridViewColumn": SalesOrderDetailList[e.RowIndex].Rowguid = (System.Guid)e.Value; break; case "uxModifiedDateDataGridViewColumn": SalesOrderDetailList[e.RowIndex].ModifiedDate = (System.DateTime)e.Value; break; default: break; } }
/// <summary> /// Handles the CellValueNeeded event of the uxSalesOrderDetailDataGridView control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="T:System.Windows.Forms.DataGridViewCellValueEventArgs"/> instance containing the event data.</param> protected void OnSalesOrderDetailDataGridViewCellValueNeeded(object sender, System.Windows.Forms.DataGridViewCellValueEventArgs e) { switch (uxSalesOrderDetailDataGridView.Columns[e.ColumnIndex].Name) { case "uxSalesOrderIdDataGridViewColumn": e.Value = SalesOrderDetailList[e.RowIndex].SalesOrderId; break; case "uxSalesOrderDetailIdDataGridViewColumn": e.Value = SalesOrderDetailList[e.RowIndex].SalesOrderDetailId; break; case "uxCarrierTrackingNumberDataGridViewColumn": e.Value = SalesOrderDetailList[e.RowIndex].CarrierTrackingNumber; break; case "uxOrderQtyDataGridViewColumn": e.Value = SalesOrderDetailList[e.RowIndex].OrderQty; break; case "uxProductIdDataGridViewColumn": e.Value = SalesOrderDetailList[e.RowIndex].ProductId; break; case "uxSpecialOfferIdDataGridViewColumn": e.Value = SalesOrderDetailList[e.RowIndex].SpecialOfferId; break; case "uxUnitPriceDataGridViewColumn": e.Value = SalesOrderDetailList[e.RowIndex].UnitPrice; break; case "uxUnitPriceDiscountDataGridViewColumn": e.Value = SalesOrderDetailList[e.RowIndex].UnitPriceDiscount; break; case "uxLineTotalDataGridViewColumn": e.Value = SalesOrderDetailList[e.RowIndex].LineTotal; break; case "uxRowguidDataGridViewColumn": e.Value = SalesOrderDetailList[e.RowIndex].Rowguid; break; case "uxModifiedDateDataGridViewColumn": e.Value = SalesOrderDetailList[e.RowIndex].ModifiedDate; break; default: break; } }
/// <summary> /// Handles the CellValuePushed event of the uxProductVendorDataGridView control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="T:System.Windows.Forms.DataGridViewCellValueEventArgs"/> instance containing the event data.</param> protected void OnProductVendorDataGridViewCellValuePushed(object sender, System.Windows.Forms.DataGridViewCellValueEventArgs e) { switch (uxProductVendorDataGridView.Columns[e.ColumnIndex].Name) { case "uxProductIdDataGridViewColumn": ProductVendorList[e.RowIndex].ProductId = (System.Int32)e.Value; break; case "uxVendorIdDataGridViewColumn": ProductVendorList[e.RowIndex].VendorId = (System.Int32)e.Value; break; case "uxAverageLeadTimeDataGridViewColumn": ProductVendorList[e.RowIndex].AverageLeadTime = (System.Int32)e.Value; break; case "uxStandardPriceDataGridViewColumn": ProductVendorList[e.RowIndex].StandardPrice = (System.Decimal)e.Value; break; case "uxLastReceiptCostDataGridViewColumn": ProductVendorList[e.RowIndex].LastReceiptCost = (System.Decimal?)e.Value; break; case "uxLastReceiptDateDataGridViewColumn": ProductVendorList[e.RowIndex].LastReceiptDate = (System.DateTime?)e.Value; break; case "uxMinOrderQtyDataGridViewColumn": ProductVendorList[e.RowIndex].MinOrderQty = (System.Int32)e.Value; break; case "uxMaxOrderQtyDataGridViewColumn": ProductVendorList[e.RowIndex].MaxOrderQty = (System.Int32)e.Value; break; case "uxOnOrderQtyDataGridViewColumn": ProductVendorList[e.RowIndex].OnOrderQty = (System.Int32?)e.Value; break; case "uxUnitMeasureCodeDataGridViewColumn": ProductVendorList[e.RowIndex].UnitMeasureCode = (System.String)e.Value; break; case "uxModifiedDateDataGridViewColumn": ProductVendorList[e.RowIndex].ModifiedDate = (System.DateTime)e.Value; break; default: break; } }
/// <summary> /// Handles the CellValuePushed event of the uxSpecialOfferDataGridView control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="T:System.Windows.Forms.DataGridViewCellValueEventArgs"/> instance containing the event data.</param> protected void OnSpecialOfferDataGridViewCellValuePushed(object sender, System.Windows.Forms.DataGridViewCellValueEventArgs e) { switch (uxSpecialOfferDataGridView.Columns[e.ColumnIndex].Name) { case "uxSpecialOfferIdDataGridViewColumn": SpecialOfferList[e.RowIndex].SpecialOfferId = (System.Int32)e.Value; break; case "uxDescriptionDataGridViewColumn": SpecialOfferList[e.RowIndex].Description = (System.String)e.Value; break; case "uxDiscountPctDataGridViewColumn": SpecialOfferList[e.RowIndex].DiscountPct = (System.Decimal)e.Value; break; case "uxTypeDataGridViewColumn": SpecialOfferList[e.RowIndex].Type = (System.String)e.Value; break; case "uxCategoryDataGridViewColumn": SpecialOfferList[e.RowIndex].Category = (System.String)e.Value; break; case "uxStartDateDataGridViewColumn": SpecialOfferList[e.RowIndex].StartDate = (System.DateTime)e.Value; break; case "uxEndDateDataGridViewColumn": SpecialOfferList[e.RowIndex].EndDate = (System.DateTime)e.Value; break; case "uxMinQtyDataGridViewColumn": SpecialOfferList[e.RowIndex].MinQty = (System.Int32)e.Value; break; case "uxMaxQtyDataGridViewColumn": SpecialOfferList[e.RowIndex].MaxQty = (System.Int32?)e.Value; break; case "uxRowguidDataGridViewColumn": SpecialOfferList[e.RowIndex].Rowguid = (System.Guid)e.Value; break; case "uxModifiedDateDataGridViewColumn": SpecialOfferList[e.RowIndex].ModifiedDate = (System.DateTime)e.Value; break; default: break; } }
/// <summary> /// Handles the CellValueNeeded event of the uxProductVendorDataGridView control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="T:System.Windows.Forms.DataGridViewCellValueEventArgs"/> instance containing the event data.</param> protected void OnProductVendorDataGridViewCellValueNeeded(object sender, System.Windows.Forms.DataGridViewCellValueEventArgs e) { switch (uxProductVendorDataGridView.Columns[e.ColumnIndex].Name) { case "uxProductIdDataGridViewColumn": e.Value = ProductVendorList[e.RowIndex].ProductId; break; case "uxVendorIdDataGridViewColumn": e.Value = ProductVendorList[e.RowIndex].VendorId; break; case "uxAverageLeadTimeDataGridViewColumn": e.Value = ProductVendorList[e.RowIndex].AverageLeadTime; break; case "uxStandardPriceDataGridViewColumn": e.Value = ProductVendorList[e.RowIndex].StandardPrice; break; case "uxLastReceiptCostDataGridViewColumn": e.Value = ProductVendorList[e.RowIndex].LastReceiptCost; break; case "uxLastReceiptDateDataGridViewColumn": e.Value = ProductVendorList[e.RowIndex].LastReceiptDate; break; case "uxMinOrderQtyDataGridViewColumn": e.Value = ProductVendorList[e.RowIndex].MinOrderQty; break; case "uxMaxOrderQtyDataGridViewColumn": e.Value = ProductVendorList[e.RowIndex].MaxOrderQty; break; case "uxOnOrderQtyDataGridViewColumn": e.Value = ProductVendorList[e.RowIndex].OnOrderQty; break; case "uxUnitMeasureCodeDataGridViewColumn": e.Value = ProductVendorList[e.RowIndex].UnitMeasureCode; break; case "uxModifiedDateDataGridViewColumn": e.Value = ProductVendorList[e.RowIndex].ModifiedDate; break; default: break; } }
/// <summary> /// Handles the CellValuePushed event of the uxDocumentDataGridView control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="T:System.Windows.Forms.DataGridViewCellValueEventArgs"/> instance containing the event data.</param> protected void OnDocumentDataGridViewCellValuePushed(object sender, System.Windows.Forms.DataGridViewCellValueEventArgs e) { switch (uxDocumentDataGridView.Columns[e.ColumnIndex].Name) { case "uxDocumentIdDataGridViewColumn": DocumentList[e.RowIndex].DocumentId = (System.Int32)e.Value; break; case "uxTitleDataGridViewColumn": DocumentList[e.RowIndex].Title = (System.String)e.Value; break; case "uxFileNameDataGridViewColumn": DocumentList[e.RowIndex].FileName = (System.String)e.Value; break; case "uxFileExtensionDataGridViewColumn": DocumentList[e.RowIndex].FileExtension = (System.String)e.Value; break; case "uxRevisionDataGridViewColumn": DocumentList[e.RowIndex].Revision = (System.String)e.Value; break; case "uxChangeNumberDataGridViewColumn": DocumentList[e.RowIndex].ChangeNumber = (System.Int32)e.Value; break; case "uxStatusDataGridViewColumn": DocumentList[e.RowIndex].Status = (System.Byte)e.Value; break; case "uxDocumentSummaryDataGridViewColumn": DocumentList[e.RowIndex].DocumentSummary = (System.String)e.Value; break; case "uxDocumentDataGridViewColumn": DocumentList[e.RowIndex].Document = (System.Byte[])e.Value; break; case "uxModifiedDateDataGridViewColumn": DocumentList[e.RowIndex].ModifiedDate = (System.DateTime)e.Value; break; default: break; } }
/// <summary> /// Handles the CellValueNeeded event of the uxDocumentDataGridView control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="T:System.Windows.Forms.DataGridViewCellValueEventArgs"/> instance containing the event data.</param> protected void OnDocumentDataGridViewCellValueNeeded(object sender, System.Windows.Forms.DataGridViewCellValueEventArgs e) { switch (uxDocumentDataGridView.Columns[e.ColumnIndex].Name) { case "uxDocumentIdDataGridViewColumn": e.Value = DocumentList[e.RowIndex].DocumentId; break; case "uxTitleDataGridViewColumn": e.Value = DocumentList[e.RowIndex].Title; break; case "uxFileNameDataGridViewColumn": e.Value = DocumentList[e.RowIndex].FileName; break; case "uxFileExtensionDataGridViewColumn": e.Value = DocumentList[e.RowIndex].FileExtension; break; case "uxRevisionDataGridViewColumn": e.Value = DocumentList[e.RowIndex].Revision; break; case "uxChangeNumberDataGridViewColumn": e.Value = DocumentList[e.RowIndex].ChangeNumber; break; case "uxStatusDataGridViewColumn": e.Value = DocumentList[e.RowIndex].Status; break; case "uxDocumentSummaryDataGridViewColumn": e.Value = DocumentList[e.RowIndex].DocumentSummary; break; case "uxDocumentDataGridViewColumn": e.Value = DocumentList[e.RowIndex].Document; break; case "uxModifiedDateDataGridViewColumn": e.Value = DocumentList[e.RowIndex].ModifiedDate; break; default: break; } }
/// <summary> /// Handles the CellValueNeeded event of the uxSalesTerritoryDataGridView control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="T:System.Windows.Forms.DataGridViewCellValueEventArgs"/> instance containing the event data.</param> protected void OnSalesTerritoryDataGridViewCellValueNeeded(object sender, System.Windows.Forms.DataGridViewCellValueEventArgs e) { switch (uxSalesTerritoryDataGridView.Columns[e.ColumnIndex].Name) { case "uxTerritoryIdDataGridViewColumn": e.Value = SalesTerritoryList[e.RowIndex].TerritoryId; break; case "uxNameDataGridViewColumn": e.Value = SalesTerritoryList[e.RowIndex].Name; break; case "uxCountryRegionCodeDataGridViewColumn": e.Value = SalesTerritoryList[e.RowIndex].CountryRegionCode; break; case "uxGroupDataGridViewColumn": e.Value = SalesTerritoryList[e.RowIndex].Group; break; case "uxSalesYtdDataGridViewColumn": e.Value = SalesTerritoryList[e.RowIndex].SalesYtd; break; case "uxSalesLastYearDataGridViewColumn": e.Value = SalesTerritoryList[e.RowIndex].SalesLastYear; break; case "uxCostYtdDataGridViewColumn": e.Value = SalesTerritoryList[e.RowIndex].CostYtd; break; case "uxCostLastYearDataGridViewColumn": e.Value = SalesTerritoryList[e.RowIndex].CostLastYear; break; case "uxRowguidDataGridViewColumn": e.Value = SalesTerritoryList[e.RowIndex].Rowguid; break; case "uxModifiedDateDataGridViewColumn": e.Value = SalesTerritoryList[e.RowIndex].ModifiedDate; break; default: break; } }
/// <summary> /// Handles the CellValuePushed event of the uxWorkOrderDataGridView control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="T:System.Windows.Forms.DataGridViewCellValueEventArgs"/> instance containing the event data.</param> protected void OnWorkOrderDataGridViewCellValuePushed(object sender, System.Windows.Forms.DataGridViewCellValueEventArgs e) { switch (uxWorkOrderDataGridView.Columns[e.ColumnIndex].Name) { case "uxWorkOrderIdDataGridViewColumn": WorkOrderList[e.RowIndex].WorkOrderId = (System.Int32)e.Value; break; case "uxProductIdDataGridViewColumn": WorkOrderList[e.RowIndex].ProductId = (System.Int32)e.Value; break; case "uxOrderQtyDataGridViewColumn": WorkOrderList[e.RowIndex].OrderQty = (System.Int32)e.Value; break; case "uxStockedQtyDataGridViewColumn": WorkOrderList[e.RowIndex].StockedQty = (System.Int32)e.Value; break; case "uxScrappedQtyDataGridViewColumn": WorkOrderList[e.RowIndex].ScrappedQty = (System.Int16)e.Value; break; case "uxStartDateDataGridViewColumn": WorkOrderList[e.RowIndex].StartDate = (System.DateTime)e.Value; break; case "uxEndDateDataGridViewColumn": WorkOrderList[e.RowIndex].EndDate = (System.DateTime?)e.Value; break; case "uxDueDateDataGridViewColumn": WorkOrderList[e.RowIndex].DueDate = (System.DateTime)e.Value; break; case "uxScrapReasonIdDataGridViewColumn": WorkOrderList[e.RowIndex].ScrapReasonId = (System.Int16?)e.Value; break; case "uxModifiedDateDataGridViewColumn": WorkOrderList[e.RowIndex].ModifiedDate = (System.DateTime)e.Value; break; default: break; } }
/// <summary> /// Handles the CellValuePushed event of the uxSalesTerritoryDataGridView control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="T:System.Windows.Forms.DataGridViewCellValueEventArgs"/> instance containing the event data.</param> protected void OnSalesTerritoryDataGridViewCellValuePushed(object sender, System.Windows.Forms.DataGridViewCellValueEventArgs e) { switch (uxSalesTerritoryDataGridView.Columns[e.ColumnIndex].Name) { case "uxTerritoryIdDataGridViewColumn": SalesTerritoryList[e.RowIndex].TerritoryId = (System.Int32)e.Value; break; case "uxNameDataGridViewColumn": SalesTerritoryList[e.RowIndex].Name = (System.String)e.Value; break; case "uxCountryRegionCodeDataGridViewColumn": SalesTerritoryList[e.RowIndex].CountryRegionCode = (System.String)e.Value; break; case "uxGroupDataGridViewColumn": SalesTerritoryList[e.RowIndex].Group = (System.String)e.Value; break; case "uxSalesYtdDataGridViewColumn": SalesTerritoryList[e.RowIndex].SalesYtd = (System.Decimal)e.Value; break; case "uxSalesLastYearDataGridViewColumn": SalesTerritoryList[e.RowIndex].SalesLastYear = (System.Decimal)e.Value; break; case "uxCostYtdDataGridViewColumn": SalesTerritoryList[e.RowIndex].CostYtd = (System.Decimal)e.Value; break; case "uxCostLastYearDataGridViewColumn": SalesTerritoryList[e.RowIndex].CostLastYear = (System.Decimal)e.Value; break; case "uxRowguidDataGridViewColumn": SalesTerritoryList[e.RowIndex].Rowguid = (System.Guid)e.Value; break; case "uxModifiedDateDataGridViewColumn": SalesTerritoryList[e.RowIndex].ModifiedDate = (System.DateTime)e.Value; break; default: break; } }