Exemplo n.º 1
0
        partial void CreateNewTechnicalQuery_Activated()
        {
            IContentItemProxy Custproxy = this.FindControl("Customer1");

            Custproxy.ControlAvailable += new EventHandler <ControlAvailableEventArgs>((s1, e1) =>
            {
                MatrixControls.NPCustomerInternal custTb = (MatrixControls.NPCustomerInternal)e1.Control;
                custTb.SelectedItemPath = "SortedCustomers.Customer.CustomerName";
                custTb.ItemsSource      = this.SortedCustomers;
                custTb.LostFocus       += custTb_LostFocus;
            });
            IContentItemProxy Salesproxy = this.FindControl("MatrixSalesOrderNo");

            Salesproxy.ControlAvailable += new EventHandler <ControlAvailableEventArgs>((s2, e2) =>
            {
                MatrixControls.NPSalesOrderNumberInternal sonTb = (MatrixControls.NPSalesOrderNumberInternal)e2.Control;
                sonTb.SelectedItemPath = "SortedSalesOrderNumbers.SalesOrderNo";
                sonTb.ItemsSource      = this.SortedSalesOrderNumbers;
                sonTb.LostFocus       += sonTb_LostFocus;
            });
            IContentItemProxy CustOrderNumberproxy = this.FindControl("CustomerOrderNo");

            CustOrderNumberproxy.ControlAvailable += new EventHandler <ControlAvailableEventArgs>((s2, e2) =>
            {
                MatrixControls.NPCustomerOrderNumberInternal custONTb = (MatrixControls.NPCustomerOrderNumberInternal)e2.Control;
                custONTb.SelectedItemPath = "SortedCustomerOrderNumbers.CustomerOrderNumber";
                custONTb.ItemsSource      = this.SortedCustomerOrderNumbers;
                custONTb.LostFocus       += custONTb_LostFocus;
            });
        }
Exemplo n.º 2
0
        partial void CreateNewRFI_Activated()
        {
            IContentItemProxy Custproxy = this.FindControl("Customer");

            Custproxy.ControlAvailable += new EventHandler <ControlAvailableEventArgs>((s1, e1) =>
            {
                MatrixControls.NPCustomerInternal custTb =
                    (MatrixControls.NPCustomerInternal)e1.Control;
                custTb.SelectedItemPath = "SortedCustomers.Customer.CustomerName";
                custTb.ItemsSource      = this.SortedCustomers;
                custTb.LostFocus       += custTb_LostFocus;
            });
            IContentItemProxy Salesproxy = this.FindControl("MatrixSalesOrderNo");

            Salesproxy.ControlAvailable += new EventHandler <ControlAvailableEventArgs>((s2, e2) =>
            {
                MatrixControls.NPSalesOrderNumberInternal sonTb = (MatrixControls.NPSalesOrderNumberInternal)e2.Control;
                sonTb.SelectedItemPath = "SortedSalesOrderNumbers.SalesOrderNo";
                sonTb.ItemsSource      = this.SortedSalesOrderNumbers;
                sonTb.LostFocus       += sonTb_LostFocus;
            });

            IContentItemProxy Recipientproxy = this.FindControl("RFIRecipient");

            Recipientproxy.ControlAvailable += new EventHandler <ControlAvailableEventArgs>((s4, e4) =>
            {
                MatrixControls.NPRFIRecipientInternal recTb = (MatrixControls.NPRFIRecipientInternal)e4.Control;
                recTb.SelectedItemPath = "ClientStaffMember.Name";
                recTb.ItemsSource      = this.ClientStaffMember;
                recTb.LostFocus       += recTb_LostFocus;
            });
            IContentItemProxy CustOrderNumberproxy = this.FindControl("CustomerOrderNo");

            CustOrderNumberproxy.ControlAvailable += new EventHandler <ControlAvailableEventArgs>((s2, e2) =>
            {
                MatrixControls.NPCustomerOrderNumberInternal custONTb = (MatrixControls.NPCustomerOrderNumberInternal)e2.Control;
                custONTb.SelectedItemPath = "SortedCustomerOrderNumbers.CustomerOrderNumber";
                custONTb.ItemsSource      = this.SortedCustomerOrderNumbers;
                custONTb.LostFocus       += custONTb_LostFocus;
            });
        }
Exemplo n.º 3
0
 private void custONTb_LostFocus(object sender, System.Windows.RoutedEventArgs e)
 {
     MatrixControls.NPCustomerOrderNumberInternal tb = sender as MatrixControls.NPCustomerOrderNumberInternal;
     ManualCustomerOrderNo = tb.NPCustomerOrderNumber;
     this.TQDetailProperty.CustomerOrderNo = tb.GetValue(MatrixControls.NPCustomerOrderNumberInternal.NPCustomerOrderNumberProperty).ToString();
 }