private void UpdateCommodity(int type, string Id, EntityCommodity entity)
 {
     try
     {
         svcCommodityClient svc = new svcCommodityClient();
         svc.UpdateCommodityCompleted += new EventHandler<UpdateCommodityCompletedEventArgs>(this.UpdateCommodityCompleted);
         svc.UpdateCommodityAsync(Common.gstrSessionString, type, Id, entity);
     }
     catch (Exception ex)
     {
         this.ProcessingDlgClose();
         ExMessageBox.Show(CLASS_NM + ".UpdateCommodity" + Environment.NewLine + ex.ToString(), "エラー確認");
     }
 }
 private void GetCommodity(string id)
 {
     try
     {
         objCommodity = null;   // 初期化
         svcCommodityClient svc = new svcCommodityClient();
         svc.GetCommodityCompleted += new EventHandler<GetCommodityCompletedEventArgs>(this.GetCommodityCompleted);
         svc.GetCommodityAsync(Common.gstrSessionString, id);
     }
     catch (Exception ex)
     {
         this.ProcessingDlgClose();
         ExMessageBox.Show(CLASS_NM + ".GetCommodity" + Environment.NewLine + ex.ToString(), "エラー確認");
     }
 }