示例#1
0
        /// <summary>
        /// GetVendor
        /// </summary>
        /// <returns></returns>
        /// <author>Trada</author>
        /// <date>Tuesday, Feb 7 2006</date>

        public DataSet GetVendor()
        {
            MST_PartyDS dsMST_Party = new MST_PartyDS();

            return(dsMST_Party.List(" Type = " + (int)PartyTypeEnum.VENDOR
                                    + " OR Type = " + (int)PartyTypeEnum.BOTH
                                    + " OR Type = " + (int)PartyTypeEnum.OUTSIDE
                                    + " ORDER BY " + MST_PartyTable.NAME_FLD)); //dsMST_Party.GetVendor();
        }
示例#2
0
        //**************************************************************************
        ///    <Description>
        ///       This method uses to get MST_PartyVO
        ///    </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_PartyDS dsParty = new MST_PartyDS();
                return(dsParty.GetObjectVO(pintID));
            }
            catch (PCSException ex)
            {
                throw ex;
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
示例#3
0
        //**************************************************************************
        ///    <Description>
        ///     list Party Information
        ///    </Description>
        ///    <Inputs>
        ///        VendorID
        ///    </Inputs>
        ///    <Outputs>
        ///
        ///    </Outputs>
        ///    <Returns>
        ///       object
        ///    </Returns>
        ///    <Authors>
        ///       DungLA
        ///    </Authors>
        ///    <History>
        ///    04-Apr-2005
        ///    </History>
        ///    <Notes>
        ///    </Notes>
        //**************************************************************************

        public object GetPartyInfo(int pintPartyID)
        {
            try
            {
                MST_PartyDS dsParty = new MST_PartyDS();
                return(dsParty.GetObjectVO(pintPartyID));
            }
            catch (PCSException ex)
            {
                throw ex;
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
示例#4
0
 public MST_PartyVO GetPartyInfo(int pintPartyID)
 {
     try
     {
         MST_PartyDS objMST_PartyDS = new MST_PartyDS();
         return((MST_PartyVO)objMST_PartyDS.GetObjectVO(pintPartyID));
     }
     catch (PCSDBException ex)
     {
         throw ex;
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
示例#5
0
        //**************************************************************************
        ///    <Description>
        ///       This method uses to update a dataset
        ///    </Description>
        ///    <Inputs>
        ///        DataSet to update
        ///    </Inputs>
        ///    <Outputs>
        ///       N/A
        ///    </Outputs>
        ///    <Returns>
        ///       N/A
        ///    </Returns>
        ///    <Authors>
        ///       DungLa
        ///    </Authors>
        ///    <History>
        ///       04-Mar-2005
        ///    </History>
        ///    <Notes>
        ///    </Notes>
        //**************************************************************************

        public void UpdateDataSet(System.Data.DataSet dstData)
        {
            try
            {
                MST_PartyDS dsParty = new MST_PartyDS();
                dsParty.UpdateDataSet(dstData);
            }
            catch (PCSException ex)
            {
                throw ex;
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
示例#6
0
        //**************************************************************************
        ///    <Description>
        ///       Get vendor ID
        ///    </Description>
        ///    <Inputs>
        ///
        ///    </Inputs>
        ///    <Outputs>
        ///
        ///    </Outputs>
        ///    <Returns>
        ///
        ///    </Returns>
        ///    <Authors>
        ///       THIENHD
        ///    </Authors>
        ///    <History>
        ///       15-Dec-2004
        ///    </History>
        ///    <Notes>
        ///    </Notes>
        //**************************************************************************


        public int GetVendorID(string pstrVendorCode)
        {
            try
            {
                MST_PartyDS objMST_PartyDS = new MST_PartyDS();
                return(objMST_PartyDS.GetPartyID(pstrVendorCode));
            }
            catch (PCSDBException ex)
            {
                throw ex;
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
示例#7
0
        //**************************************************************************
        ///    <Description>
        ///       Get vendor code based on ID
        ///    </Description>
        ///    <Inputs>
        ///
        ///    </Inputs>
        ///    <Outputs>
        ///
        ///    </Outputs>
        ///    <Returns>
        ///
        ///    </Returns>
        ///    <Authors>
        ///       THIENHD
        ///    </Authors>
        ///    <History>
        ///       15-Dec-2004
        ///    </History>
        ///    <Notes>
        ///    </Notes>
        //**************************************************************************


        public string GetVendorCodeAndName(int pintVendorID)
        {
            try
            {
                MST_PartyDS objMST_PartyDS = new MST_PartyDS();
                return(objMST_PartyDS.GetPartyCodeAndName(pintVendorID));
            }
            catch (PCSDBException ex)
            {
                throw ex;
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
示例#8
0
        //**************************************************************************
        ///    <Description>
        ///       This method uses to update MST_PartyVO
        ///    </Description>
        ///    <Inputs>
        ///        MST_PartyVO
        ///    </Inputs>
        ///    <Outputs>
        ///       N/A
        ///    </Outputs>
        ///    <Returns>
        ///       N/A
        ///    </Returns>
        ///    <Authors>
        ///       DungLa
        ///    </Authors>
        ///    <History>
        ///       04-Mar-2005
        ///    </History>
        ///    <Notes>
        ///    </Notes>
        //**************************************************************************

        public void Update(object pObjectDetail)
        {
            try
            {
                MST_PartyDS dsParty = new MST_PartyDS();
                dsParty.Update(pObjectDetail);
            }
            catch (PCSException ex)
            {
                throw ex;
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
示例#9
0
        //**************************************************************************
        ///    <Description>
        ///       This method uses to add data to MST_Party
        ///    </Description>
        ///    <Inputs>
        ///        MST_PartyVO
        ///    </Inputs>
        ///    <Outputs>
        ///       newly inserted primarkey value
        ///    </Outputs>
        ///    <Returns>
        ///       int
        ///    </Returns>
        ///    <Authors>
        ///       DungLa
        ///    </Authors>
        ///    <History>
        ///       04-Mar-2005
        ///    </History>
        ///    <Notes>
        ///    </Notes>
        //**************************************************************************

        public int AddReturnID(object pObjectDetail)
        {
            try
            {
                MST_PartyDS dsParty = new MST_PartyDS();
                return(dsParty.AddReturnID(pObjectDetail));
            }
            catch (PCSException ex)
            {
                throw ex;
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
示例#10
0
        //**************************************************************************
        ///    <Description>
        ///       This method uses to get MST_PartyVO 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 pstrPartyCode)
        {
            try
            {
                MST_PartyDS dsParty = new MST_PartyDS();
                return(dsParty.GetObjectVO(pstrPartyCode));
            }
            catch (PCSException ex)
            {
                throw ex;
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
示例#11
0
        //**************************************************************************
        ///    <Description>
        ///       This method uses to delete MST_Party
        ///    </Description>
        ///    <Inputs>
        ///        MST_PartyVO
        ///    </Inputs>
        ///    <Outputs>
        ///       N/A
        ///    </Outputs>
        ///    <Returns>
        ///       N/A
        ///    </Returns>
        ///    <Authors>
        ///       DungLa
        ///    </Authors>
        ///    <History>
        ///       04-Mar-2005
        ///    </History>
        ///    <Notes>
        ///    </Notes>
        //**************************************************************************

        public void Delete(object pObjectVO)
        {
            try
            {
                MST_PartyVO voParty = (MST_PartyVO)pObjectVO;
                // delete all contact first
                MST_PartyContactDS dsContact = new MST_PartyContactDS();
                dsContact.DeleteByParty(voParty.PartyID);
                // then delete all location
                MST_PartyLocationDS dsLocation = new MST_PartyLocationDS();
                dsLocation.DeleteByParty(voParty.PartyID);
                // finally delete Party
                MST_PartyDS dsParty = new MST_PartyDS();
                dsParty.Delete(voParty.PartyID);
            }
            catch (PCSException ex)
            {
                throw ex;
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
示例#12
0
        public DataSet ListParty()
        {
            MST_PartyDS dsParty = new MST_PartyDS();

            return(dsParty.List());
        }
示例#13
0
        public DataTable GetCustomerInfo(int pintPartyID)
        {
            MST_PartyDS objMST_PartyDS = new MST_PartyDS();

            return(objMST_PartyDS.GetCustomerInfo(pintPartyID));
        }
示例#14
0
        public DataTable ListVendor()
        {
            MST_PartyDS dsParty = new MST_PartyDS();

            return(dsParty.ListVendor());
        }
示例#15
0
        public DataTable GetPartyType()
        {
            MST_PartyDS dsParty = new MST_PartyDS();

            return(dsParty.GetPartyType());
        }
示例#16
0
        public DataRow GetVendorInfo(int pintVendorLocationID)
        {
            MST_PartyDS dsParty = new MST_PartyDS();

            return(dsParty.GetVendorInfo(pintVendorLocationID));
        }
示例#17
0
        public object GetPartyVO(int pintID)
        {
            MST_PartyDS dsMaster = new MST_PartyDS();

            return(dsMaster.GetObjectVO(pintID));
        }