示例#1
0
        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;
                    }
                }
            }
        }
示例#2
0
 protected override bool ValidateModelCondition(OrderGridModel model)
 {
     return(model.PaymentInfoNumber == filterInt);
 }
示例#3
0
 protected override bool ValidateModelCondition(OrderGridModel model)
 {
     return(model.ItemsCount == filterInt);
 }
示例#4
0
 protected override bool ValidateModelCondition(OrderGridModel model)
 {
     return(model.CustomerFingersCount == filterInt);
 }
示例#5
0
 protected override bool ValidateModelCondition(OrderGridModel model)
 {
     return(true);
 }
示例#6
0
 protected override bool ValidateModelCondition(OrderGridModel model)
 {
     return(model.PaymentInfoOrderedDate == filterDate);
 }
示例#7
0
 protected override bool ValidateModelCondition(OrderGridModel model)
 {
     return(model.CustomerPreviousSurgeryDate == filterDate);
 }
示例#8
0
 protected override bool ValidateModelCondition(OrderGridModel model)
 {
     return(model.PaymentInfoExternalPaymentId.Contains(filterString));
 }
示例#9
0
 protected override bool ValidateModelCondition(OrderGridModel model)
 {
     return(model.Note.Contains(filterString));
 }
示例#10
0
 protected override bool ValidateModelCondition(OrderGridModel model)
 {
     return(model.TotalPrice == filterDouble);
 }
示例#11
0
 protected override bool ValidateModelCondition(OrderGridModel model)
 {
     return(model.CustomerHairLength == filterDouble);
 }
示例#12
0
 protected override bool ValidateModelCondition(OrderGridModel model)
 {
     return(model.PaymentInfoState == this.filterEnum);
 }
示例#13
0
 protected override bool ValidateModelCondition(OrderGridModel model)
 {
     return(model.CustomerType == this.filterEnum);
 }
示例#14
0
 protected abstract bool ValidateModelCondition(OrderGridModel model);