Example #1
0
 public static List <CategoryInfo> GetGroupCategoryInfo(PagerInfo pagerInfo)
 {
     try
     {
         MasterDataServiceClient service = new MasterDataServiceClient();
         return(service.GetGroupCategoryInfo(pagerInfo).ToList());
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Example #2
0
 public static bool InsertOrUpdateSupplierInfo(SupplierInfo supplierInfo)
 {
     try
     {
         MasterDataServiceClient service = new MasterDataServiceClient();
         return(service.InsertOrUpdateSupplierInfo(supplierInfo));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Example #3
0
 public static bool InsertOrUpdateProductInfo(ProductInfo productInfo)
 {
     try
     {
         MasterDataServiceClient service = new MasterDataServiceClient();
         return(service.InsertOrUpdateProductInfo(productInfo));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Example #4
0
        private async void Button_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                var client = new MasterDataServiceClient(
                    new NetTcpBinding(SecurityMode.None),
                    new EndpointAddress("net.tcp://LWDEU08DTK2PH2:9002/MasterData"));
                var medicines = await client.GetMedicinesAsync(new SearchFilter[] { }, null, null);

                client.SetMedicinesReceived += (s, a) =>
                {
                };

                // propertyGridView.SelectedObject = c;
            }
            catch (Exception ex)
            {
                Debug.WriteLine(ex);
            }
        }