Beispiel #1
0
 public void updateItem(String codeNumber, String name, String longDetail)
 {
     try
     {
         DataManagementService dmService = DataManagementService.getService(Session2.getConnection());
         ModelObject           itemObj   = findModel(cfg.get("query_builder_ItemById_name")
                                                     , new string[] { cfg.get("query_builder_ItemById_queryKey") }, new string[] { codeNumber });
         var item = new ItemElementProperties();
         item.ItemElement = itemObj;
         item.Name        = name;
         //Hashtable kv = new Hashtable();
         //kv.Add("object_desc", longDetail);
         //item.ItemElemAttributes = kv;
         CreateOrUpdateItemElementsResponse rsp = dmService.CreateOrUpdateItemElements(new ItemElementProperties[] { item });
     }
     catch (Exception)
     {
     }
 }