예제 #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
 function OfficeReportsVariablesViewEdit()
 {
     parent::ViewEdit();
 }
예제 #3
0
 public function __construct()
 {
     parent::ViewEdit();
     $this->useForSubpanel = true;
     $this->useModuleQuickCreateTemplate = true;
 }
예제 #4
0
 function BugsViewEdit()
 {
     parent::ViewEdit();
 }
예제 #5
0
 /**
  * @see SugarView::ViewEdit()
  */
 function DocumentsViewEdit()
 {
     parent::ViewEdit();
     $this->useForSubpanel = true;
 }
예제 #6
0
 public function __construct()
 {
     parent::ViewEdit();
 }
예제 #7
0
 function CasesViewEdit()
 {
     parent::ViewEdit();
 }
예제 #8
0
 function QuotesViewEdit()
 {
     parent::ViewEdit();
 }
예제 #9
0
 function xInventoriesViewEdit()
 {
     parent::ViewEdit();
 }
예제 #10
0
 function FP_eventsViewEdit()
 {
     parent::ViewEdit();
 }
예제 #11
0
 public function PdfManagerViewEdit()
 {
     parent::ViewEdit();
 }
예제 #12
0
 function CallsViewEdit()
 {
     parent::ViewEdit();
 }
예제 #13
0
 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();
 }
 function EmployeesViewEdit()
 {
     parent::ViewEdit();
 }
예제 #18
0
 function AOS_InvoicesViewEdit()
 {
     parent::ViewEdit();
 }
예제 #19
0
 function REG_PatientViewViewRiskEvaluation()
 {
     parent::ViewEdit();
 }
 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
 function OdersViewEdit()
 {
     parent::ViewEdit();
 }
예제 #23
0
 function RealtyTemplatesViewEdit()
 {
     parent::ViewEdit();
 }
예제 #24
0
 function ContractsViewEdit()
 {
     parent::ViewEdit();
 }
예제 #25
0
 function UsersViewEdit()
 {
     parent::ViewEdit();
 }
예제 #26
0
 function AOS_Product_CategoriesViewEdit()
 {
     parent::ViewEdit();
 }
예제 #27
0
 function OpportunitiesViewEdit()
 {
     parent::ViewEdit();
     $this->useForSubpanel = true;
 }
예제 #28
0
 function REG_PatientViewReportMain()
 {
     parent::ViewEdit();
 }
예제 #29
0
 function ProjectViewEdit()
 {
     parent::ViewEdit();
 }
예제 #30
0
 function ContactsViewEdit()
 {
     parent::ViewEdit();
     $this->useForSubpanel = true;
     $this->useModuleQuickCreateTemplate = true;
 }