示例#1
0
        //**************************************************************************
        ///    <Description>
        ///       This method uses to get MST_PartyLocationVO by Code
        ///    </Description>
        ///    <Inputs>
        ///        ID
        ///    </Inputs>
        ///    <Outputs>
        ///       object
        ///    </Outputs>
        ///    <Returns>
        ///       object
        ///    </Returns>
        ///    <Authors>
        ///       DungLa
        ///    </Authors>
        ///    <History>
        ///       04-Mar-2005
        ///    </History>
        ///    <Notes>
        ///    </Notes>
        //**************************************************************************

        public object GetObjectVO(string pstrLocationCode)
        {
            try
            {
                MST_PartyLocationDS dsLocation = new MST_PartyLocationDS();
                return(dsLocation.GetObjectVO(pstrLocationCode));
            }
            catch (PCSException ex)
            {
                throw ex;
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
示例#2
0
        //**************************************************************************
        ///    <Description>
        ///       This method uses to get MST_PartyLocationVO
        ///    </Description>
        ///    <Inputs>
        ///        ID
        ///    </Inputs>
        ///    <Outputs>
        ///       object
        ///    </Outputs>
        ///    <Returns>
        ///       object
        ///    </Returns>
        ///    <Authors>
        ///       DungLa
        ///    </Authors>
        ///    <History>
        ///       04-Mar-2005
        ///    </History>
        ///    <Notes>
        ///    </Notes>
        //**************************************************************************

        public object GetObjectVO(int pintID, string VOclass)
        {
            try
            {
                MST_PartyLocationDS dsLocation = new MST_PartyLocationDS();
                return(dsLocation.GetObjectVO(pintID));
            }
            catch (PCSException ex)
            {
                throw ex;
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
示例#3
0
 public string GetBuyingLocName(int pintID)
 {
     try
     {
         MST_PartyLocationDS dsParty = new MST_PartyLocationDS();
         return(((MST_PartyLocationVO)dsParty.GetObjectVO(pintID)).Code);
     }
     catch (PCSDBException ex)
     {
         throw ex;
     }
     catch (PCSException ex)
     {
         throw ex;
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }