Example #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;
            });
        }
        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;
            });
        }
Example #3
0
 private void sonTb_LostFocus(object sender, System.Windows.RoutedEventArgs e)
 {
     MatrixControls.NPSalesOrderNumberInternal tb = sender as MatrixControls.NPSalesOrderNumberInternal;
     ManualSalesOrderNo = tb.NPSalesOrderNumber;
     this.TQDetailProperty.MatrixSalesOrderNo = tb.GetValue(MatrixControls.NPSalesOrderNumberInternal.NPSalesOrderProperty).ToString();
 }