Example #1
0
        public OperatorWindow(IClientBusinessComponent clientBusinessComponent, IRequestBusinessComponent requestBusinessComponent, IPaymentBusinessComponent paymentBusinessComponent,
                              ICreditBusinessComponent creditBusinessComponent, int operatorId, IKernel ninjectKernel)
        {
            _clientBusinessComponent  = clientBusinessComponent;
            _requestBusinessComponent = requestBusinessComponent;
            _paymentBusinessComponent = paymentBusinessComponent;
            _creditBusinessComponent  = creditBusinessComponent;
            _operatorId         = operatorId;
            this._ninjectKernel = ninjectKernel;

            InitializeComponent();

            RepaymentPassportNo.MaxLength   = OperatorValidation.PassportNoMaxLength;
            AllowCreditPassportNo.MaxLength = OperatorValidation.PassportNoMaxLength;
            RepaymentToPay.MaxLength        = OperatorValidation.ToPayMaxLength;
            RequestRequestId.MaxLength      = OperatorValidation.RequestIdMaxLength;

            RequestListView.ItemsSource     = RequestDataList;
            RepaymentListView.ItemsSource   = RepaymentDataList;
            AllowCreditListView.ItemsSource = AllowCreditDataList;

            RequestListView.SelectionMode     = SelectionMode.Single;
            RepaymentListView.SelectionMode   = SelectionMode.Single;
            AllowCreditListView.SelectionMode = SelectionMode.Single;

            RepaymentOpen.IsEnabled      = false;
            RequestReject.IsEnabled      = false;
            RequestSendRequest.IsEnabled = false;
            RepaymentSubmit.IsEnabled    = false;
        }
Example #2
0
        public OperatorWindow(IClientBusinessComponent clientBusinessComponent, IRequestBusinessComponent requestBusinessComponent, IPaymentBusinessComponent paymentBusinessComponent,
            ICreditBusinessComponent creditBusinessComponent, int operatorId, IKernel ninjectKernel)
        {
            _clientBusinessComponent = clientBusinessComponent;
            _requestBusinessComponent = requestBusinessComponent;
            _paymentBusinessComponent = paymentBusinessComponent;
            _creditBusinessComponent = creditBusinessComponent;
            _operatorId = operatorId;
            this._ninjectKernel = ninjectKernel;

            InitializeComponent();

            RepaymentPassportNo.MaxLength = OperatorValidation.PassportNoMaxLength;
            AllowCreditPassportNo.MaxLength = OperatorValidation.PassportNoMaxLength;
            RepaymentToPay.MaxLength = OperatorValidation.ToPayMaxLength;
            RequestRequestId.MaxLength = OperatorValidation.RequestIdMaxLength;

            RequestListView.ItemsSource = RequestDataList;
            RepaymentListView.ItemsSource = RepaymentDataList;
            AllowCreditListView.ItemsSource = AllowCreditDataList;

            RequestListView.SelectionMode = SelectionMode.Single;
            RepaymentListView.SelectionMode = SelectionMode.Single;
            AllowCreditListView.SelectionMode = SelectionMode.Single;

            RepaymentOpen.IsEnabled = false;
            RequestReject.IsEnabled = false;
            RequestSendRequest.IsEnabled = false;
            RepaymentSubmit.IsEnabled = false;
        }
Example #3
0
 public PaymentController(IPaymentBusinessComponent paymentBusinessComponent)
 {
     _paymentBusinessComponent = paymentBusinessComponent;
 }