private void DGrid_SelectionChanged(object sender, SelectionChangedEventArgs e) { DataGrid datagrid = (DataGrid)sender; OrderGridModel gridModel = (OrderGridModel)datagrid.SelectedItem; if (gridModel != null) { orderId = gridModel.OrderId; OrderFeatureModel orderFeatureModel = generalOperation.GetOrdersById(orderId); string strMsg = String.Format(" Gövde \t: {0}\n Motor \t: {1} \n Vites Kutusu \t: {2}\n Döşeme \t: {3} \n Opsiyonlar \t: {4}", orderFeatureModel.Body, orderFeatureModel.Engine, orderFeatureModel.GearBox, orderFeatureModel.Floor, orderFeatureModel.Option); MessageBox.Show(strMsg, "Araç Detayları"); if (StaticUser.GetUser().IsAdmin) { if (gridModel.StatusType == (int)OrderStatus.Draft) { btnRemove.Visibility = Visibility.Visible; btnSuccess.Visibility = Visibility.Visible; } else { btnRemove.Visibility = Visibility.Collapsed; btnSuccess.Visibility = Visibility.Collapsed; } } } }
protected override bool ValidateModelCondition(OrderGridModel model) { return(model.PaymentInfoNumber == filterInt); }
protected override bool ValidateModelCondition(OrderGridModel model) { return(model.ItemsCount == filterInt); }
protected override bool ValidateModelCondition(OrderGridModel model) { return(model.CustomerFingersCount == filterInt); }
protected override bool ValidateModelCondition(OrderGridModel model) { return(true); }
protected override bool ValidateModelCondition(OrderGridModel model) { return(model.PaymentInfoOrderedDate == filterDate); }
protected override bool ValidateModelCondition(OrderGridModel model) { return(model.CustomerPreviousSurgeryDate == filterDate); }
protected override bool ValidateModelCondition(OrderGridModel model) { return(model.PaymentInfoExternalPaymentId.Contains(filterString)); }
protected override bool ValidateModelCondition(OrderGridModel model) { return(model.Note.Contains(filterString)); }
protected override bool ValidateModelCondition(OrderGridModel model) { return(model.TotalPrice == filterDouble); }
protected override bool ValidateModelCondition(OrderGridModel model) { return(model.CustomerHairLength == filterDouble); }
protected override bool ValidateModelCondition(OrderGridModel model) { return(model.PaymentInfoState == this.filterEnum); }
protected override bool ValidateModelCondition(OrderGridModel model) { return(model.CustomerType == this.filterEnum); }
protected abstract bool ValidateModelCondition(OrderGridModel model);