コード例 #1
0
ファイル: view.edit.php プロジェクト: nunoabc/Web2
 function zd_TicketsViewEdit()
 {
     parent::ViewEdit();
     if ($_REQUEST['return_module'] && $_REQUEST['return_id']) {
         $this->requesters = array();
         switch ($_REQUEST['return_module']) {
             case 'Accounts':
                 $this->referrer = new Account();
                 $this->referrer->retrieve($_REQUEST['return_id']);
                 $count = 0;
                 foreach ($this->referrer->get_contacts() as $contact) {
                     $this->requesters[$contact->email1] = $contact->name;
                 }
                 break;
             case 'Leads':
                 $this->referrer = new Lead();
                 $this->referrer->retrieve($_REQUEST['return_id']);
                 $this->requesters = array($this->referrer->email1 => $this->referrer->name);
                 break;
             case 'Contacts':
                 $this->referrer = new Contact();
                 $this->referrer->retrieve($_REQUEST['return_id']);
                 $this->requesters = array($this->referrer->email1 => $this->referrer->name);
                 break;
             case 'Opportunities':
                 $this->referrer = new Opportunity();
                 $this->referrer->retrieve($_REQUEST['return_id']);
                 $this->referrer->load_relationship('contacts');
                 $query_array = $this->referrer->contacts->getQuery(true);
                 $query_array['select'] = "SELECT contacts.id, contacts.first_name, contacts.last_name, contacts.title, contacts.phone_work, opportunities_contacts.contact_role as opportunity_role, opportunities_contacts.id as opportunity_rel_id ";
                 $query = '';
                 foreach ($query_array as $qstring) {
                     $query .= ' ' . $qstring;
                 }
                 $temp = array('id', 'first_name', 'last_name', 'title', 'phone_work', 'opportunity_role', 'opportunity_rel_id');
                 $contacts = $this->referrer->build_related_list2($query, new Contact(), $temp);
                 foreach ($contacts as $contact) {
                     $contact->retrieve();
                     $this->requesters[$contact->email1] = $contact->name;
                 }
                 break;
         }
         if (sizeof($this->requesters) == 0) {
             $this->requesters = array($this->referrer->email1 => $this->referrer->name);
         }
     }
 }
コード例 #2
0
ファイル: view.edit.php プロジェクト: omusico/sugar_work
 function OfficeReportsVariablesViewEdit()
 {
     parent::ViewEdit();
 }
コード例 #3
0
ファイル: view.edit.php プロジェクト: delkyd/sugarcrm_dev
 public function __construct()
 {
     parent::ViewEdit();
     $this->useForSubpanel = true;
     $this->useModuleQuickCreateTemplate = true;
 }
コード例 #4
0
ファイル: view.edit.php プロジェクト: omusico/sugar_work
 function BugsViewEdit()
 {
     parent::ViewEdit();
 }
コード例 #5
0
ファイル: view.edit.php プロジェクト: omusico/sugar_work
 /**
  * @see SugarView::ViewEdit()
  */
 function DocumentsViewEdit()
 {
     parent::ViewEdit();
     $this->useForSubpanel = true;
 }
コード例 #6
0
ファイル: view.edit.php プロジェクト: omusico/SelkirkCRM
 public function __construct()
 {
     parent::ViewEdit();
 }
コード例 #7
0
ファイル: view.edit.php プロジェクト: switcode/SuiteCRM
 function CasesViewEdit()
 {
     parent::ViewEdit();
 }
コード例 #8
0
ファイル: view.edit.php プロジェクト: sysraj86/carnivalcrm
 function QuotesViewEdit()
 {
     parent::ViewEdit();
 }
コード例 #9
0
ファイル: view.edit.php プロジェクト: sunmo/snowlotus
 function xInventoriesViewEdit()
 {
     parent::ViewEdit();
 }
コード例 #10
0
ファイル: view.edit.php プロジェクト: NALSS/SuiteCRM
 function FP_eventsViewEdit()
 {
     parent::ViewEdit();
 }
コード例 #11
0
ファイル: view.edit.php プロジェクト: jglaine/sugar761-ent
 public function PdfManagerViewEdit()
 {
     parent::ViewEdit();
 }
コード例 #12
0
ファイル: view.edit.php プロジェクト: klr2003/sourceread
 function CallsViewEdit()
 {
     parent::ViewEdit();
 }
コード例 #13
0
ファイル: view.edit.php プロジェクト: MexinaD/SuiteCRM
 function FavoritesViewEdit()
 {
     parent::ViewEdit();
 }
コード例 #14
0
 function oqc_OfferingViewEdit()
 {
     parent::ViewEdit();
 }
コード例 #15
0
 function ProjectViewTemplatesEdit()
 {
     parent::ViewEdit();
 }
コード例 #16
0
 function AOS_PDF_TemplatesViewEdit()
 {
     parent::ViewEdit();
 }
コード例 #17
0
 function EmployeesViewEdit()
 {
     parent::ViewEdit();
 }
コード例 #18
0
ファイル: view.edit.php プロジェクト: MexinaD/SuiteCRM
 function AOS_InvoicesViewEdit()
 {
     parent::ViewEdit();
 }
コード例 #19
0
ファイル: snippetexample.php プロジェクト: apikck/REG_Patient
 function REG_PatientViewViewRiskEvaluation()
 {
     parent::ViewEdit();
 }
コード例 #20
0
 function __construct()
 {
     // 2013-02-28 disable VCR Display
     $GLOBALS['sugar_config']['disable_vcr'] = true;
     parent::ViewEdit();
 }
コード例 #21
0
ファイル: view.edit.php プロジェクト: ekutor/temis
 function AOS_ContractsViewDetail()
 {
     parent::ViewEdit();
 }
コード例 #22
0
ファイル: view.edit.php プロジェクト: sysraj86/carnivalcrm
 function OdersViewEdit()
 {
     parent::ViewEdit();
 }
コード例 #23
0
ファイル: view.edit.php プロジェクト: omusico/sugar_work
 function RealtyTemplatesViewEdit()
 {
     parent::ViewEdit();
 }
コード例 #24
0
ファイル: view.edit.php プロジェクト: sysraj86/carnivalcrm
 function ContractsViewEdit()
 {
     parent::ViewEdit();
 }
コード例 #25
0
ファイル: view.edit.php プロジェクト: jglaine/sugar761-ent
 function UsersViewEdit()
 {
     parent::ViewEdit();
 }
コード例 #26
0
ファイル: view.edit.php プロジェクト: NALSS/SuiteCRM
 function AOS_Product_CategoriesViewEdit()
 {
     parent::ViewEdit();
 }
コード例 #27
0
ファイル: view.edit.php プロジェクト: thsonvt/sugarcrm_dev
 function OpportunitiesViewEdit()
 {
     parent::ViewEdit();
     $this->useForSubpanel = true;
 }
コード例 #28
0
 function REG_PatientViewReportMain()
 {
     parent::ViewEdit();
 }
コード例 #29
0
ファイル: view.edit.php プロジェクト: NALSS/SuiteCRM
 function ProjectViewEdit()
 {
     parent::ViewEdit();
 }
コード例 #30
0
ファイル: view.edit.php プロジェクト: klr2003/sourceread
 function ContactsViewEdit()
 {
     parent::ViewEdit();
     $this->useForSubpanel = true;
     $this->useModuleQuickCreateTemplate = true;
 }