Ejemplo n.º 1
0
 public VisitDetail()
 {
     InitializeComponent();
     facade   = new CustomerVisitFacade();
     PageView = new CustomerVisitDetailView()
     {
         Customer = new CustomerMaster()
     };
     Loaded += new RoutedEventHandler(VisitDetail_Loaded);
 }
Ejemplo n.º 2
0
        public void GetVisitDetailByVisitSysNo(int visitSysNo, System.Action <CustomerVisitDetailView> action)
        {
            if (visitSysNo > 0)
            {
                string relativeUrl = String.Format("/CustomerService/Visit/Load/{0}", visitSysNo);

                restClient.Query <CustomerVisitDetailReq>(relativeUrl, (sender, e) =>
                {
                    if (e.FaultsHandle())
                    {
                        return;
                    }
                    CustomerVisitDetailView detail = EntityConverter <CustomerVisitDetailReq, CustomerVisitDetailView> .Convert(e.Result);
                    if (action != null)
                    {
                        action(detail);
                    }
                });
            }
        }