OBS/Makros und Scripting/Developer/Beispiele/Vorgangs-Mail Betreff: Unterschied zwischen den Versionen

Aus OBS Wiki
Zur Navigation springen Zur Suche springen
(Die Seite wurde neu angelegt: „Motor-driven scooters, like Go-Peds and Razor scooters, have turned out to be very renowned in late years and are an excellent means to close the gap between k…“)
 
(Result)
Zeile 1: Zeile 1:
Motor-driven scooters, like Go-Peds and Razor scooters, have turned out to be very renowned in late years and are an excellent means to close the gap between kick scooters & full-sized mopeds. Kick scooters are ok for smaller kids but when they wish to move on to something quicker  led liền dây ([http://ledtruongan.com/danh-muc/den-led-quang-cao/led-lien-day-5mm/ http://ledtruongan.com/danh-muc/den-led-quang-cao/led-lien-day-5mm/]) a gas or electric scooter would be a better choice.<br><br>Motor-driven scooters can be electric powered or gas driven and each have their pros and cons. In this post, we will have a close look at these sorts of scooters to aid you pick the best one for your kid.<br><br>The 1st thing to understand regarding motorized scooters is the speed. Gas scooters are always quicker than electric scooters with greatest speed about 30 mph while electric scooter reach up to around 20 mph. considering safety is utmost important here. A slower electric driven [http://News.sky.com/search?term=scooter scooter] may be a better choice for your kid until he has educated how to manage one skillfully substituting sporadically. However, an electric scooter is practically maintenance-free so is effortless for a kid to take care of.<br><br>You'll also require to take a gas-driven scooter to the gas station for gas filling. but it has an advantage over an electric scooter in how long it can run for. Scooters with electric motors vary in their maximum [http://Www.Ehow.com/search.html?s=running running] time on one recharge, from forty minutes for a smaller engine to four hours for a larger more expensive one. This is continuous use and four hours is plenty for your child to run around the neighborhood. They can be easily charged by plugging in to a power socket overnight to be ready for the next day play.<br><br>What regarding the price of electric and gas scooters? Gas scooters are more costly in comparison to electric motors. Go-peds begin at around $450. A lower priced electric scooter with a 40 minute utmost running time can be avail for as low as one hundred dollars though you will require to disburse extra if you wish one that can function regularly for longer period than this. Furthermore an electric scooter is far affordable to operate than a gas driven one.<br><br>So, in conclusion, you can say that for younger kids self balancing electric scooters are superior as they're safer & simpler to take care of. There are so many china manufacturers these days offering economical electric scooters that are made of high quality materials. So, contact them for a better deal.
{{Makros und Scripting}}
=Script Library=
Wenn in der Script Bibliothek ein Script mit dem Namen '''EMailBetreff''' vorhanden ist, wird dieses bei der Erzeugung von E-Mails aus Vorgängen gestartet und erzeugt einen individuellen Betreff.  
 
Für jeden Vorgangstypen (Angebot, Rechnung, etc.) kann innerhalb dieses Scripts eine Funktion geschrieben werden. Die Funktion GetBetreff_AU erstellt zum Beispiel einen Betreff, wenn ein Auftrag erstellt wird.
 
=Beispiel=
<source lang="delphi">
function GetBetreff_AF(cNr:String): String;
var cSQL    : String;             
    qQuery  : TxFQuery;
begin 
    Result := '';
    cSQL  := 'SELECT * FROM ANFRAGE' +
              ' LEFT JOIN PROJEKTE ON p_nr = a_projnr' +
              ' LEFT JOIN MESSEN  ON p_messenid = m_nr' +
              ' LEFT JOIN messen_termine ON p_messenid = mt_mnr AND p_messenterminid = mt_nr' +
              ' WHERE a_nr = ' + DB_SQLVal(cNr);
 
    if (DB_SOpen(oDB,cSQL,qQuery)) then begin
        //Result := "Anfrage" + Projektnummer und Messename, Jahr und Ort automatisch erscheint.
        Result := 'Anfrage ' + qQuery.A2C('a_projnr') + ' ' + qQuery.A2C('m_name') + ', ' + qQuery.A2C('mt_jahr') + ' ' + qQuery.A2C('mt_ort');
    end;
    DB_Close(qQuery);   
end;
 
</source>

Version vom 22. Juli 2022, 08:09 Uhr


Script Library

Wenn in der Script Bibliothek ein Script mit dem Namen EMailBetreff vorhanden ist, wird dieses bei der Erzeugung von E-Mails aus Vorgängen gestartet und erzeugt einen individuellen Betreff.

Für jeden Vorgangstypen (Angebot, Rechnung, etc.) kann innerhalb dieses Scripts eine Funktion geschrieben werden. Die Funktion GetBetreff_AU erstellt zum Beispiel einen Betreff, wenn ein Auftrag erstellt wird.

Beispiel

function GetBetreff_AF(cNr:String): String;
var cSQL    : String;               
    qQuery  : TxFQuery; 
begin  
    Result := '';
    cSQL   := 'SELECT * FROM ANFRAGE' + 
              ' LEFT JOIN PROJEKTE ON p_nr = a_projnr' + 
              ' LEFT JOIN MESSEN  ON p_messenid = m_nr' +
              ' LEFT JOIN messen_termine ON p_messenid = mt_mnr AND p_messenterminid = mt_nr' +
              ' WHERE a_nr = ' + DB_SQLVal(cNr);

    if (DB_SOpen(oDB,cSQL,qQuery)) then begin
        //Result := "Anfrage" + Projektnummer und Messename, Jahr und Ort automatisch erscheint.
        Result := 'Anfrage ' + qQuery.A2C('a_projnr') + ' ' + qQuery.A2C('m_name') + ', ' + qQuery.A2C('mt_jahr') + ' ' + qQuery.A2C('mt_ort'); 
    end;
    DB_Close(qQuery);    
end;