<% /*
    $Revision$
    $Id$

    File:           model_fac_email_setting.inc

    Description:

    Context:

    Notes:
*/
%>
<%

function fac_email_setting()
{
    this.table = "fac_email_setting";
    this.primary = "fac_email_setting_key";
    this.records_name = "emailsettings";
    this.record_name = "emailsetting";
    this.autfunction = "WEB_FACTAB";
    this.record_title = L("fac_email_setting");
    this.records_title = L("fac_email_setting_m");

    this.fields = {
        "id": {
            "dbs": "fac_email_setting_key",
            "label": "Key",
            "typ": "key",
            "required": true,
            "filter": "exact",
            "seq": "fac_s_fac_email_setting_key",
            "defaultvalue": null
        },
        "name": {
            "dbs": "fac_email_setting_user",
            "label": L("fac_email_setting_user"),
            "typ": "varchar",
            "required": true
        },
        "from": {
            "dbs": "fac_email_setting_from",
            "label": L("fac_email_setting_from"),
            "typ": "varchar"
        },
        "frommode": {
            "dbs": "fac_email_setting_frommode",
            "label": L("fac_email_setting_frommode"),
            "typ": "number",
            "required": true,
            "LOV": L("fac_email_setting_frommodeLOV")
        },
        "action": {
            "dbs": "fac_email_setting_action",
            "label": L("fac_email_setting_action"),
            "typ": "varchar"
        },
        "expire": {
            "dbs": "fac_email_setting_expire",
            "label": L("fac_email_setting_expire"),
            "typ": "date",
            "readonly": true
        },
        "attachmentspath": {
            "dbs": "fac_email_setting_attachpath",
            "label": L("fac_email_setting_attachpath"),
            "typ": "varchar"
        }
    };


    this.REST_GET    = generic_REST_GET(this);
    this.REST_POST   = generic_REST_POST(this);
    this.REST_PUT    = generic_REST_PUT(this);
    this.REST_DELETE = generic_REST_DELETE(this);
}
%>