public void UpdateAll(DataSet dstData, object pobjProduct) { // TODO: Add BomBO.UpdateDataSet implementation try { //update dataset BOM ITM_BOMDS dsBOM = new ITM_BOMDS(); DataSet dstBOM = new DataSet(); dstBOM.Tables.Add(dstData.Tables[ITM_BOMTable.TABLE_NAME].Copy()); dsBOM.UpdateDataSet(dstBOM); //update dataset Hierarchy DataSet dstHierarchy = new DataSet(); dstHierarchy.Tables.Add(dstData.Tables[ITM_HierarchyTable.TABLE_NAME].Copy()); ITM_HierarchyDS dsHierarchyDS = new ITM_HierarchyDS(); dsHierarchyDS.UpdateDataSet(dstData); //update Product new ITM_ProductDS().UpdateForBom(pobjProduct); dstData.AcceptChanges(); } catch (PCSDBException ex) { throw ex; } catch (Exception ex) { throw ex; } }
public void UpdateDataSet(DataSet dstData) { ITM_BOMDS dsBOM = new ITM_BOMDS(); dsBOM.UpdateDataSet(dstData); }