/// <summary> /// Get shift by WCCapacity /// </summary> /// <param name="pintWCCapacityID"></param> /// <returns></returns> /// <author>Trada</author> /// <date>Thursday, January 12 2006</date> public DataTable GetShiftByWCCapacity(int pintWCCapacityID) { DataTable dtbReturn = new DataTable(); PRO_ShiftCapacityDS dsPRO_ShiftCapacity = new PRO_ShiftCapacityDS(); dtbReturn = dsPRO_ShiftCapacity.GetShiftByWCCapacityID(pintWCCapacityID); return(dtbReturn); }
/// <summary> /// Return the DataSet (list of record) by inputing the FieldList and Condition /// </summary> public void UpdateShiftCapacityDataSet(DataSet dstData) { try { PRO_ShiftCapacityDS dsShiftCapacity = new PRO_ShiftCapacityDS(); dsShiftCapacity.UpdateDataSet(dstData); } catch (PCSDBException ex) { throw ex; } catch (Exception ex) { throw new Exception(ex.Message, ex); } }
/// <summary> /// Delete record by work center /// </summary> public void DeleteByWorkCenter(int pintCCNID, int pintWorkCenterId) { try { PRO_ShiftCapacityDS dsShiftCapacity = new PRO_ShiftCapacityDS(); PRO_WCCapacityDS dsWCCapacity = new PRO_WCCapacityDS(); dsShiftCapacity.DeleteByWorkCenter(pintCCNID, pintWorkCenterId); dsWCCapacity.DeleteByWorkCenter(pintCCNID, pintWorkCenterId); } catch (PCSDBException ex) { throw ex; } catch (Exception ex) { throw new Exception(ex.Message, ex); } }