/// <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(); }
//************************************************************************** /// <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; } }
//************************************************************************** /// <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; } }
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; } }
//************************************************************************** /// <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; } }
//************************************************************************** /// <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; } }
//************************************************************************** /// <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; } }
//************************************************************************** /// <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; } }
//************************************************************************** /// <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; } }
//************************************************************************** /// <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; } }
//************************************************************************** /// <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; } }
public DataSet ListParty() { MST_PartyDS dsParty = new MST_PartyDS(); return(dsParty.List()); }
public DataTable GetCustomerInfo(int pintPartyID) { MST_PartyDS objMST_PartyDS = new MST_PartyDS(); return(objMST_PartyDS.GetCustomerInfo(pintPartyID)); }
public DataTable ListVendor() { MST_PartyDS dsParty = new MST_PartyDS(); return(dsParty.ListVendor()); }
public DataTable GetPartyType() { MST_PartyDS dsParty = new MST_PartyDS(); return(dsParty.GetPartyType()); }
public DataRow GetVendorInfo(int pintVendorLocationID) { MST_PartyDS dsParty = new MST_PartyDS(); return(dsParty.GetVendorInfo(pintVendorLocationID)); }
public object GetPartyVO(int pintID) { MST_PartyDS dsMaster = new MST_PartyDS(); return(dsMaster.GetObjectVO(pintID)); }