//************************************************************************** /// <Description> /// This method uses to get additional charge by PO Master /// </Description> /// <Inputs> /// int /// </Inputs> /// <Outputs> /// DataSet /// </Outputs> /// <Returns> /// DataSet /// </Returns> /// <Authors> /// DungLa /// </Authors> /// <History> /// 17-Feb-2005 /// </History> /// <Notes> /// </Notes> //************************************************************************** public DataSet GetAdditionalChargeByPOMasterID(int pintPOMasterID) { try { PO_AdditionChargesDS dsAddCharge = new PO_AdditionChargesDS(); MST_ReasonDS dsReason = new MST_ReasonDS(); DataSet dstData = dsAddCharge.GetAdditionalChargeByPOMasterID(pintPOMasterID); // fill reason code if have id foreach (DataRow drowData in dstData.Tables[0].Rows) { if ((drowData[PO_AdditionChargesTable.REASONID_FLD] != null) && (drowData[PO_AdditionChargesTable.REASONID_FLD].ToString() != string.Empty) && (drowData[PO_AdditionChargesTable.REASONID_FLD].ToString() != "0")) { string strReasonCode = dsReason.GetCodeFromID(int.Parse(drowData[SO_AdditionChargeTable.REASONID_FLD].ToString())); if ((strReasonCode != null) && (strReasonCode != string.Empty)) { drowData[MST_ReasonTable.TABLE_NAME + MST_ReasonTable.CODE_FLD] = strReasonCode; } } } return(dstData); } catch (PCSException ex) { throw ex; } catch (Exception ex) { throw ex; } }
//************************************************************************** /// <Description> /// This method uses to get ReasonVO /// </Description> /// <Inputs> /// int /// </Inputs> /// <Outputs> /// object /// </Outputs> /// <Returns> /// /// </Returns> /// <Authors> /// DungLa /// </Authors> /// <History> /// 18-Feb-2005 /// </History> /// <Notes> /// </Notes> //************************************************************************** public object GetReasonVO(int pintReasonID) { try { MST_ReasonDS dsReason = new MST_ReasonDS(); return(dsReason.GetObjectVO(pintReasonID)); } catch (PCSException ex) { throw ex; } catch (Exception ex) { throw ex; } }