示例#1
0
        //**************************************************************************
        ///    <Description>
        ///     update object
        ///    </Description>
        ///    <Inputs>
        ///        object
        ///    </Inputs>
        ///    <Outputs>
        ///
        ///    </Outputs>
        ///    <Returns>
        ///       N/A
        ///    </Returns>
        ///    <Authors>
        ///       DungLA
        ///    </Authors>
        ///    <History>
        ///    05-Apr-2005
        ///    </History>
        ///    <Notes>
        ///    </Notes>
        //**************************************************************************

        public void Update(object pObjectDetail)
        {
            try
            {
                PO_ItemVendorReferenceDS dsItemVendor = new PO_ItemVendorReferenceDS();
                dsItemVendor.Update(pObjectDetail);
            }
            catch (PCSException ex)
            {
                throw ex;
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
示例#2
0
 public void DeleteItemVendor(int pintPartyID, int pintProductID)
 {
     try
     {
         PO_ItemVendorReferenceDS objPO_ItemVendorReferenceDS = new PO_ItemVendorReferenceDS();
         objPO_ItemVendorReferenceDS.DeleteItemVendor(pintPartyID, pintProductID);
     }
     catch (PCSException ex)
     {
         throw ex;
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
示例#3
0
        //**************************************************************************
        ///    <Description>
        ///       This method is used to get the DataTable result
        ///       from a specific table with a specific search field key
        ///       This function will be used on form that need to search for ID from Code, Name
        ///       such as Product Code, or Product description
        ///    </Description>
        ///    <Inputs>
        ///        TableName, Expression
        ///    </Inputs>
        ///    <Outputs>
        ///
        ///    </Outputs>
        ///    <Returns>
        ///       DataTable
        ///    </Returns>
        ///    <Authors>
        ///       DungLa
        ///    </Authors>
        ///    <History>
        ///       07-Apr-2005
        ///    </History>
        ///    <Notes>
        ///    </Notes>
        //**************************************************************************

        public DataTable GetRows(string pstrTableName, string pstrExpression)
        {
            try
            {
                PO_ItemVendorReferenceDS dsItemVendor = new PO_ItemVendorReferenceDS();
                return(dsItemVendor.GetRows(pstrTableName, pstrExpression));
            }
            catch (PCSException ex)
            {
                throw ex;
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
示例#4
0
        //**************************************************************************
        ///    <Description>
        ///       This method uses to add new object and return new ID
        ///    </Description>
        ///    <Inputs>
        ///        object
        ///    </Inputs>
        ///    <Outputs>
        ///
        ///    </Outputs>
        ///    <Returns>
        ///       new ID
        ///    </Returns>
        ///    <Authors>
        ///       DungLa
        ///    </Authors>
        ///    <History>
        ///       05-Apr-2005
        ///    </History>
        ///    <Notes>
        ///    </Notes>
        //**************************************************************************

        public int AddAndReturnID(object pObjectDetail)
        {
            try
            {
                PO_ItemVendorReferenceDS dsItemVendor = new PO_ItemVendorReferenceDS();
                return(dsItemVendor.AddAndReturnID(pObjectDetail));
            }
            catch (PCSException ex)
            {
                throw ex;
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
示例#5
0
        //**************************************************************************
        ///    <Description>
        ///       This method uses to get ItemVendorCrossReference object
        ///    </Description>
        ///    <Inputs>
        ///        PartyID, ProductID
        ///    </Inputs>
        ///    <Outputs>
        ///
        ///    </Outputs>
        ///    <Returns>
        ///       object
        ///    </Returns>
        ///    <Authors>
        ///       DungLa
        ///    </Authors>
        ///    <History>
        ///       05-Apr-2005
        ///    </History>
        ///    <Notes>
        ///    </Notes>
        //**************************************************************************

        public object GetObjectVO(int pintPartyID, int pintProductID)
        {
            try
            {
                PO_ItemVendorReferenceDS dsItemVendor = new PO_ItemVendorReferenceDS();
                return(dsItemVendor.GetObjectVO(pintPartyID, pintProductID));
            }
            catch (PCSException ex)
            {
                throw ex;
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
示例#6
0
        //**************************************************************************
        ///    <Description>
        ///     list all record in ItemVedorCrossReference table by VendorID, VendorLocationID
        ///    </Description>
        ///    <Inputs>
        ///        VendorID, VendorLocID, CCNID
        ///    </Inputs>
        ///    <Outputs>
        ///
        ///    </Outputs>
        ///    <Returns>
        ///       DataSet
        ///    </Returns>
        ///    <Authors>
        ///       DungLA
        ///    </Authors>
        ///    <History>
        ///    04-Apr-2005
        ///    </History>
        ///    <Notes>
        ///    </Notes>
        //**************************************************************************

        public DataSet List(int pintVendorID, int pintVedorLocID, int pintCCNID)
        {
            try
            {
                PO_ItemVendorReferenceDS dsVendorCross = new PO_ItemVendorReferenceDS();
                return(dsVendorCross.List(pintVendorID, pintVedorLocID, pintCCNID));
            }
            catch (PCSException ex)
            {
                throw ex;
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }