示例#1
0
文件: edi.c 项目: varphone/appweb-4
cchar *ediGetFieldFmt(cchar *fmt, EdiRec *rec, cchar *fieldName)
{
    EdiField    field;

    field = ediGetFieldSchema(rec, fieldName);
    if (!field.valid) {
        return "";
    }
    return ediFormatField(fmt, field);
}
示例#2
0
文件: edi.c 项目: varphone/appweb-4
cchar *ediReadField(Edi *edi, cchar *fmt, cchar *tableName, cchar *key, cchar *columnName, cchar *defaultValue)
{
    EdiField    field;

    field = ediReadRawField(edi, tableName, key, columnName);
    if (!field.valid) {
        return defaultValue;
    }
    return ediFormatField(fmt, field);
}
示例#3
0
static cchar *formatValue(EdiField *fp, MprHash *options)
{
    return ediFormatField(httpGetOption(options, "format", 0), fp);
}