public void DeleteMRPResult(int pintCCNID, int pintCycleOptionID) { //Delete MTR_CPO MTR_CPODS dsMTR_CPO = new MTR_CPODS(); dsMTR_CPO.Delete(pintCCNID, pintCycleOptionID); }
/// <summary> /// DeleteCycleOptionMasterAndDetail /// </summary> /// <param name="pintCycleOptionMasterID"></param> /// <param name="pdstData"></param> /// <author>Trada</author> /// <date>Thursday, August 11 2005</date> public void DeleteCycleOptionMasterAndDetail(int pintCCNID, int pintCycleOptionMasterID, DataSet pdstData) { foreach (DataRow drow in pdstData.Tables[0].Rows) { if (drow.RowState != DataRowState.Deleted) { drow.Delete(); } } //Delete Detail MTR_MRPCycleOptionDetailDS dsMTR_MRPCycleOptionDetail = new MTR_MRPCycleOptionDetailDS(); dsMTR_MRPCycleOptionDetail.UpdateDataSet(pdstData); //Delete MTR_CPO MTR_CPODS dsMTR_CPO = new MTR_CPODS(); dsMTR_CPO.Delete(pintCCNID, pintCycleOptionMasterID); //Delete Master MTR_MRPCycleOptionMasterDS dsMTR_MRPCycleOptionMaster = new MTR_MRPCycleOptionMasterDS(); dsMTR_MRPCycleOptionMaster.Delete(pintCycleOptionMasterID); }
/// <summary> /// Delete MRP result by list of CPO /// </summary> public void DeleteMRP(string pstrCPOIDs) { MTR_CPODS dsCPO = new MTR_CPODS(); dsCPO.Delete(pstrCPOIDs); }