OpportunityClusterLineEdit::OpportunityClusterLineEdit(QWidget* pParent, const char* pName) : CrmClusterLineEdit(pParent, "ophead", "ophead_id", "ophead_name", 0, "ophead_notes", "ophead_owner_username", "ophead_username", 0, pName) { _objtype = "OPP"; setTitles(tr("Opportunity"), tr("Opportunities")); setUiName("opportunity"); setEditPriv("MaintainAllOpportunities"); setNewPriv("MaintainAllOpportunities"); setViewPriv("ViewAllOpportunities"); setEditOwnPriv("MaintainPersonalOpportunities"); setViewOwnPriv("ViewPersonalOpportunities"); }
IncidentClusterLineEdit::IncidentClusterLineEdit(QWidget* pParent, const char* pName) : CrmClusterLineEdit(pParent, "incdt", "incdt_id", "incdt_number::text", "incdt_summary", 0, "incdt_owner_username", "incdt_assigned_username", 0, pName) { _objtype = "INCDT"; setTitles(tr("Incident"), tr("Incidents")); setUiName("incident"); setEditPriv("MaintainAllIncidents"); setNewPriv("MaintainAllIncidents"); setViewPriv("ViewAllIncidents"); setEditOwnPriv("MaintainPersonalIncidents"); setViewOwnPriv("ViewPersonalIncidents"); }
CRMAcctLineEdit::CRMAcctLineEdit(QWidget* pParent, const char* pName) : CrmClusterLineEdit(pParent, "crmacct", "crmacct_id", "crmacct_number", "crmacct_name", 0, "crmacct_owner_username", 0, 0, pName, "crmacct_active") { _objtype = "CRMA"; setTitles(tr("Account"), tr("Accounts")); setUiName("crmaccount"); setEditPriv("MaintainAllCRMAccounts"); setViewPriv("ViewAllCRMAccounts"); setNewPriv("MaintainAllCRMAccounts"); setEditOwnPriv("MaintainPersonalCRMAccounts"); setViewOwnPriv("ViewPersonalCRMAccounts"); setSubtype(Crmacct); }
ProjectLineEdit::ProjectLineEdit(QWidget* pParent, const char* pName) : CrmClusterLineEdit(pParent, "prj", "prj_id", "prj_number", "prj_name", 0, "prj_owner_username", "prj_username", 0, pName) { _objtype = "J"; setTitles(tr("Project"), tr("Projects")); setUiName("project"); setEditPriv("MaintainAllProjects"); setNewPriv("MaintainAllProjects"); setViewPriv("ViewAllProjects"); setEditOwnPriv("MaintainPersonalProjects"); setViewOwnPriv("ViewPersonalProjects"); _type = Undefined; }
ContactClusterLineEdit::ContactClusterLineEdit(QWidget* pParent, const char* pName) : CrmClusterLineEdit(pParent, "cntct()", "cntct_id", "cntct_name", 0, "cntct_title", "cntct_owner_username", 0, 0, pName, "cntct_active") { _searchAcctId = -1; setTitles(tr("Contact"), tr("Contacts")); setUiName("contact"); setEditPriv("MaintainAllContacts"); setNewPriv("MaintainAllContacts"); setViewPriv("ViewAllContacts"); setEditOwnPriv("MaintainPersonalContacts"); setViewOwnPriv("ViewPersonalContacts"); _query = "SELECT cntct_id AS id, cntct_name AS number, cntct_title AS description, " " cntct_active AS active, " " cntct_first_name, cntct_last_name, crmacct_name, cntct_title, cntct_phone, " " cntct_phone2,cntct_fax, cntct_email, cntct_webaddr " "FROM cntct LEFT OUTER JOIN crmacct ON (cntct_crmacct_id = crmacct_id) " "WHERE (true) "; }