0
私はクリスタルレポートで5つのパラメータを作成しました。それらのそれぞれの組み合わせを作成して、結合が機能するようにしなければなりません。Crystal Reports 2008-Sage x3
例:私は1と2と木と4と5を持っています。しかし残念なことに、このコードでは3つのパラメータを挿入することはありません。水晶がそれを受け入れる方法や方法は他にありますか?
IF {?param1deb} <> '' and {?param2deb} <> '' and {?param3deb} <> '' and {?param4deb} <> '' and {?param5deb} <> '' then
({AFCTEXE.FCT_0} LIKE {?param1deb}+'*' OR
{AFCTEXE.FCT_0} LIKE {?param2deb}+'*' OR
{AFCTEXE.FCT_0} LIKE {?param3deb}+'*' OR
{AFCTEXE.FCT_0} LIKE {?param4deb}+'*' OR
{AFCTEXE.FCT_0} LIKE {?param5deb}+'*') AND
{AUTILIS.ZITUSR_0} <> 2 and
{AUTILIS.ENAFLG_0} = 2 and
{AUTILIS.USR_0} in {?userdeb} to {?userfin};
IF {?param1deb} <> '' and {?param2deb} <> '' and {?param3deb} <> '' and {?param4deb} <> '' and {?param5deb} = '' then
({AFCTEXE.FCT_0} LIKE {?param1deb}+'*' OR
{AFCTEXE.FCT_0} LIKE {?param2deb}+'*' OR
{AFCTEXE.FCT_0} LIKE {?param3deb}+'*' OR
{AFCTEXE.FCT_0} LIKE {?param4deb}+'*') AND
{AUTILIS.ZITUSR_0} <> 2 and
{AUTILIS.ENAFLG_0} = 2 and
{AUTILIS.USR_0} in {?userdeb} to {?userfin};
IF {?param1deb} <> '' and {?param2deb} <> '' and {?param3deb} <> '' and {?param4deb} = '' and {?param5deb} <> '' then
({AFCTEXE.FCT_0} LIKE {?param1deb}+'*' OR
{AFCTEXE.FCT_0} LIKE {?param2deb}+'*' OR
{AFCTEXE.FCT_0} LIKE {?param3deb}+'*' OR
{AFCTEXE.FCT_0} LIKE {?param5deb}+'*') AND
{AUTILIS.ZITUSR_0} <> 2 and
{AUTILIS.ENAFLG_0} = 2 and
{AUTILIS.USR_0} in {?userdeb} to {?userfin};
IF {?param1deb} <> '' and {?param2deb} <> '' and {?param3deb} = '' and {?param4deb} <> '' and {?param5deb} <> '' then
({AFCTEXE.FCT_0} LIKE {?param1deb}+'*' OR
{AFCTEXE.FCT_0} LIKE {?param2deb}+'*' OR
{AFCTEXE.FCT_0} LIKE {?param4deb}+'*' OR
{AFCTEXE.FCT_0} LIKE {?param5deb}+'*') AND
{AUTILIS.ZITUSR_0} <> 2 and
{AUTILIS.ENAFLG_0} = 2 and
{AUTILIS.USR_0} in {?userdeb} to {?userfin};
IF {?param1deb} <> '' and {?param2deb} = '' and {?param3deb} <> '' and {?param4deb} <> '' and {?param5deb} <> '' then
({AFCTEXE.FCT_0} LIKE {?param1deb}+'*' OR
{AFCTEXE.FCT_0} LIKE {?param3deb}+'*' OR
{AFCTEXE.FCT_0} LIKE {?param4deb}+'*' OR
{AFCTEXE.FCT_0} LIKE {?param5deb}+'*') AND
{AUTILIS.ZITUSR_0} <> 2 and
{AUTILIS.ENAFLG_0} = 2 and
{AUTILIS.USR_0} in {?userdeb} to {?userfin};
IF {?param1deb} = '' and {?param2deb} <> '' and {?param3deb} <> '' and {?param4deb} <> '' and {?param5deb} <> '' then
({AFCTEXE.FCT_0} LIKE {?param2deb}+'*' OR
{AFCTEXE.FCT_0} LIKE {?param3deb}+'*' OR
{AFCTEXE.FCT_0} LIKE {?param4deb}+'*' OR
{AFCTEXE.FCT_0} LIKE {?param5deb}+'*') AND
{AUTILIS.ZITUSR_0} <> 2 and
{AUTILIS.ENAFLG_0} = 2 and
{AUTILIS.USR_0} in {?userdeb} to {?userfin};
IF {?param1deb} <> '' and {?param2deb} <> '' and {?param3deb} <> '' and {?param4deb} = '' and {?param5deb} = '' then
({AFCTEXE.FCT_0} LIKE {?param1deb}+'*' OR
{AFCTEXE.FCT_0} LIKE {?param2deb}+'*' OR
{AFCTEXE.FCT_0} LIKE {?param3deb}+'*') AND
{AUTILIS.ZITUSR_0} <> 2 and
{AUTILIS.ENAFLG_0} = 2 and
{AUTILIS.USR_0} in {?userdeb} to {?userfin};
IF {?param1deb} <> '' and {?param2deb} <> '' and {?param3deb} = '' and {?param4deb} = '' and {?param5deb} <> '' then
({AFCTEXE.FCT_0} LIKE {?param1deb}+'*' OR
{AFCTEXE.FCT_0} LIKE {?param2deb}+'*' OR
{AFCTEXE.FCT_0} LIKE {?param5deb}+'*') AND
{AUTILIS.ZITUSR_0} <> 2 and
{AUTILIS.ENAFLG_0} = 2 and
{AUTILIS.USR_0} in {?userdeb} to {?userfin};
IF {?param1deb} <> '' and {?param2deb} = '' and {?param3deb} = '' and {?param4deb} <> '' and {?param5deb} <> '' then
({AFCTEXE.FCT_0} LIKE {?param1deb}+'*' OR
{AFCTEXE.FCT_0} LIKE {?param4deb}+'*' OR
{AFCTEXE.FCT_0} LIKE {?param5deb}+'*') AND
{AUTILIS.ZITUSR_0} <> 2 and
{AUTILIS.ENAFLG_0} = 2 and
{AUTILIS.USR_0} in {?userdeb} to {?userfin};
IF {?param1deb} = '' and {?param2deb} = '' and {?param3deb} <> '' and {?param4deb} <> '' and {?param5deb} <> '' then
({AFCTEXE.FCT_0} LIKE {?param3deb}+'*' OR
{AFCTEXE.FCT_0} LIKE {?param4deb}+'*' OR
{AFCTEXE.FCT_0} LIKE {?param5deb}+'*') AND
{AUTILIS.ZITUSR_0} <> 2 and
{AUTILIS.ENAFLG_0} = 2 and
{AUTILIS.USR_0} in {?userdeb} to {?userfin};
IF {?param1deb} = '' and {?param2deb} <> '' and {?param3deb} <> '' and {?param4deb} <> '' and {?param5deb} = '' then
({AFCTEXE.FCT_0} LIKE {?param2deb}+'*' OR
{AFCTEXE.FCT_0} LIKE {?param3deb}+'*' OR
{AFCTEXE.FCT_0} LIKE {?param4deb}+'*') AND
{AUTILIS.ZITUSR_0} <> 2 and
{AUTILIS.ENAFLG_0} = 2 and
{AUTILIS.USR_0} in {?userdeb} to {?userfin};
IF {?param1deb} = '' and {?param2deb} = '' and {?param3deb} <> '' and {?param4deb} <> '' and {?param5deb} <> '' then
({AFCTEXE.FCT_0} LIKE {?param3deb}+'*' OR
{AFCTEXE.FCT_0} LIKE {?param4deb}+'*' OR
{AFCTEXE.FCT_0} LIKE {?param5deb}+'*') AND
{AUTILIS.ZITUSR_0} <> 2 and
{AUTILIS.ENAFLG_0} = 2 and
{AUTILIS.USR_0} in {?userdeb} to {?userfin};
IF {?param1deb} <> '' and {?param2deb} <> '' and {?param3deb} = '' and {?param4deb} = '' and {?param5deb} = '' then
({AFCTEXE.FCT_0} LIKE {?param1deb}+'*' OR
{AFCTEXE.FCT_0} LIKE {?param2deb}+'*') AND
{AUTILIS.ZITUSR_0} <> 2 and
{AUTILIS.ENAFLG_0} = 2 and
{AUTILIS.USR_0} in {?userdeb} to {?userfin};
IF {?param1deb} = '' and {?param2deb} <> '' and {?param3deb} <> '' and {?param4deb} = '' and {?param5deb} = '' then
({AFCTEXE.FCT_0} LIKE {?param2deb}+'*' OR
{AFCTEXE.FCT_0} LIKE {?param3deb}+'*') AND
{AUTILIS.ZITUSR_0} <> 2 and
{AUTILIS.ENAFLG_0} = 2 and
{AUTILIS.USR_0} in {?userdeb} to {?userfin};
IF {?param1deb} = '' and {?param2deb} = '' and {?param3deb} <> '' and {?param4deb} <> '' and {?param5deb} = '' then
({AFCTEXE.FCT_0} LIKE {?param3deb}+'*' OR
{AFCTEXE.FCT_0} LIKE {?param4deb}+'*') AND
{AUTILIS.ZITUSR_0} <> 2 and
{AUTILIS.ENAFLG_0} = 2 and
{AUTILIS.USR_0} in {?userdeb} to {?userfin};
IF {?param1deb} = '' and {?param2deb} = '' and {?param3deb} = '' and {?param4deb} <> '' and {?param5deb} <> '' then
({AFCTEXE.FCT_0} LIKE {?param4deb}+'*' OR
{AFCTEXE.FCT_0} LIKE {?param5deb}+'*') AND
{AUTILIS.ZITUSR_0} <> 2 and
{AUTILIS.ENAFLG_0} = 2 and
{AUTILIS.USR_0} in {?userdeb} to {?userfin};
IF {?param1deb} <> '' and {?param2deb} = '' and {?param3deb} <> '' and {?param4deb} = '' and {?param5deb} = '' then
({AFCTEXE.FCT_0} LIKE {?param1deb}+'*' OR
{AFCTEXE.FCT_0} LIKE {?param3deb}+'*') AND
{AUTILIS.ZITUSR_0} <> 2 and
{AUTILIS.ENAFLG_0} = 2 and
{AUTILIS.USR_0} in {?userdeb} to {?userfin};
IF {?param1deb} = '' and {?param2deb} <> '' and {?param3deb} = '' and {?param4deb} <> '' and {?param5deb} = '' then
({AFCTEXE.FCT_0} LIKE {?param2deb}+'*' OR
{AFCTEXE.FCT_0} LIKE {?param4deb}+'*') AND
{AUTILIS.ZITUSR_0} <> 2 and
{AUTILIS.ENAFLG_0} = 2 and
{AUTILIS.USR_0} in {?userdeb} to {?userfin};
IF {?param1deb} = '' and {?param2deb} = '' and {?param3deb} <> '' and {?param4deb} = '' and {?param5deb} <> '' then
({AFCTEXE.FCT_0} LIKE {?param3deb}+'*' OR
{AFCTEXE.FCT_0} LIKE {?param5deb}+'*') AND
{AUTILIS.ZITUSR_0} <> 2 and
{AUTILIS.ENAFLG_0} = 2 and
{AUTILIS.USR_0} in {?userdeb} to {?userfin};
IF {?param1deb} <> '' and {?param2deb} = '' and {?param3deb} = '' and {?param4deb} = '' and {?param5deb} <> '' then
({AFCTEXE.FCT_0} LIKE {?param1deb}+'*' OR
{AFCTEXE.FCT_0} LIKE {?param5deb}+'*') AND
{AUTILIS.ZITUSR_0} <> 2 and
{AUTILIS.ENAFLG_0} = 2 and
{AUTILIS.USR_0} in {?userdeb} to {?userfin};
IF {?param1deb} <> '' and {?param2deb} = '' and {?param3deb} = '' and {?param4deb} = '' and {?param5deb} = '' then
({AFCTEXE.FCT_0} LIKE {?param1deb}+'*') AND
{AUTILIS.ZITUSR_0} <> 2 and
{AUTILIS.ENAFLG_0} = 2 and
{AUTILIS.USR_0} in {?userdeb} to {?userfin};
IF {?param1deb} = '' and {?param2deb} <> '' and {?param3deb} = '' and {?param4deb} = '' and {?param5deb} = '' then
({AFCTEXE.FCT_0} LIKE {?param2deb}+'*') AND
{AUTILIS.ZITUSR_0} <> 2 and
{AUTILIS.ENAFLG_0} = 2 and
{AUTILIS.USR_0} in {?userdeb} to {?userfin};
IF {?param1deb} = '' and {?param2deb} = '' and {?param3deb} <> '' and {?param4deb} = '' and {?param5deb} = '' then
({AFCTEXE.FCT_0} LIKE {?param3deb}+'*') AND
{AUTILIS.ZITUSR_0} <> 2 and
{AUTILIS.ENAFLG_0} = 2 and
{AUTILIS.USR_0} in {?userdeb} to {?userfin};
IF {?param1deb} = '' and {?param2deb} = '' and {?param3deb} = '' and {?param4deb} <> '' and {?param5deb} = '' then
({AFCTEXE.FCT_0} LIKE {?param4deb}+'*') AND
{AUTILIS.ZITUSR_0} <> 2 and
{AUTILIS.ENAFLG_0} = 2 and
{AUTILIS.USR_0} in {?userdeb} to {?userfin};
IF {?param1deb} = '' and {?param2deb} = '' and {?param3deb} = '' and {?param4deb} = '' and {?param5deb} <> '' then
({AFCTEXE.FCT_0} LIKE {?param5deb}+'*') AND
{AUTILIS.ZITUSR_0} <> 2 and
{AUTILIS.ENAFLG_0} = 2 and
{AUTILIS.USR_0} in {?userdeb} to {?userfin};