[ Index ]
 

Code source de vtiger CRM 5.0.2

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/modules/Vendors/ -> Vendor.js (source)

   1  /*********************************************************************************
   2  ** The contents of this file are subject to the vtiger CRM Public License Version 1.0
   3   * ("License"); You may not use this file except in compliance with the License
   4   * The Original Code is:  vtiger CRM Open Source
   5   * The Initial Developer of the Original Code is vtiger.
   6   * Portions created by vtiger are Copyright (C) vtiger.
   7   * All Rights Reserved.
   8   *
   9   ********************************************************************************/
  10  
  11  function check4null(form)
  12  {
  13      var isError = false;
  14      var errorMessage = "";
  15      if (trim(form.productname.value) =='') 
  16      {
  17          isError = true;
  18          errorMessage += "\n Product Name";
  19          form.productname.focus();
  20      }
  21      if (isError == true) 
  22      {
  23          alert("Missing required fields: " + errorMessage);
  24          return false;
  25      }
  26      return true;
  27  }
  28  
  29  
  30  function set_return_specific(vendor_id, vendor_name) 
  31  {
  32          //getOpenerObj used for DetailView 
  33          var fldName = getOpenerObj("vendor_name");
  34          var fldId = getOpenerObj("vendor_id");
  35          fldName.value = vendor_name;
  36          fldId.value = vendor_id;
  37  }
  38  
  39  function set_return_address(vendor_id, vendor_name, street, city, state, code, country,pobox ) 
  40  {
  41          window.opener.document.EditView.vendor_name.value = vendor_name;
  42          window.opener.document.EditView.vendor_id.value = vendor_id;
  43          window.opener.document.EditView.bill_street.value = street;
  44          window.opener.document.EditView.ship_street.value = street;
  45          window.opener.document.EditView.bill_city.value = city;
  46          window.opener.document.EditView.ship_city.value = city;
  47          window.opener.document.EditView.bill_state.value = state;
  48          window.opener.document.EditView.ship_state.value = state;
  49          window.opener.document.EditView.bill_code.value = code;
  50          window.opener.document.EditView.ship_code.value = code;
  51          window.opener.document.EditView.bill_country.value = country;
  52          window.opener.document.EditView.ship_country.value = country;
  53          window.opener.document.EditView.bill_pobox.value = pobox;
  54          window.opener.document.EditView.ship_pobox.value = pobox;
  55  }
  56  


Généré le : Sun Feb 25 10:22:19 2007 par Balluche grâce à PHPXref 0.7