public void SaveData(DataSet pdstData, object pobjPeriod) { CST_ActCostAllocationMasterVO voPeriod = (CST_ActCostAllocationMasterVO)pobjPeriod; // delete old cost first CST_ActualCostHistoryDS dsActualCost = new CST_ActualCostHistoryDS(); try { dsActualCost.Delete(voPeriod.ActCostAllocationMasterID); } catch { throw new PCSBOException(ErrorCode.MESSAGE_CAN_NOT_DELETE, "SaveData", null); } // update actual cost dsActualCost.UpdateDataSet(pdstData); // update period rollupdate CST_ActCostAllocationMasterDS dsPeriod = new CST_ActCostAllocationMasterDS(); dsPeriod.Update(pobjPeriod); }
/// <summary> /// Return the DataSet (list of record) by inputing the FieldList and Condition /// </summary> public void UpdateDataSet(DataSet dstData) { CST_ActualCostHistoryDS dsActualCost = new CST_ActualCostHistoryDS(); dsActualCost.UpdateDataSet(dstData); }