|
|
|
@ -69,14 +69,13 @@ public class OrganizationFormItemUtil {
|
|
|
|
|
/**
|
|
|
|
|
* 输入框数字
|
|
|
|
|
* @param user
|
|
|
|
|
* @param rules
|
|
|
|
|
* @param colSpan
|
|
|
|
|
* @param fieldcol
|
|
|
|
|
* @param viewAttr
|
|
|
|
|
* @param label
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
public static SearchConditionItem inputNumberItem(User user,String rules,int colSpan, int fieldcol,
|
|
|
|
|
public static SearchConditionItem inputNumberItem(User user,int colSpan, int fieldcol,
|
|
|
|
|
int viewAttr, String label,String name) {
|
|
|
|
|
ConditionFactory conditionFactory = new ConditionFactory(user);
|
|
|
|
|
SearchConditionItem inputnumber = conditionFactory.createCondition(ConditionType.INPUTNUMBER,502327, name);
|
|
|
|
@ -84,8 +83,6 @@ public class OrganizationFormItemUtil {
|
|
|
|
|
inputnumber.setFieldcol(fieldcol);
|
|
|
|
|
inputnumber.setViewAttr(viewAttr);
|
|
|
|
|
inputnumber.setLabel(label);
|
|
|
|
|
inputnumber.setRules(rules);
|
|
|
|
|
|
|
|
|
|
return inputnumber;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -93,7 +90,6 @@ public class OrganizationFormItemUtil {
|
|
|
|
|
/**
|
|
|
|
|
* 输入框文本
|
|
|
|
|
* @param user
|
|
|
|
|
* @param rules
|
|
|
|
|
* @param colSpan
|
|
|
|
|
* @param fieldcol
|
|
|
|
|
* @param viewAttr
|
|
|
|
@ -101,7 +97,7 @@ public class OrganizationFormItemUtil {
|
|
|
|
|
* @param label
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
public static SearchConditionItem inputItem(User user,String rules,int colSpan, int fieldcol,
|
|
|
|
|
public static SearchConditionItem inputItem(User user,int colSpan, int fieldcol,
|
|
|
|
|
int viewAttr,int length, String label,String name) {
|
|
|
|
|
ConditionFactory conditionFactory = new ConditionFactory(user);
|
|
|
|
|
SearchConditionItem input = conditionFactory.createCondition(ConditionType.INPUT,25034, name);
|
|
|
|
@ -110,7 +106,6 @@ public class OrganizationFormItemUtil {
|
|
|
|
|
input.setViewAttr(viewAttr);
|
|
|
|
|
input.setLength(length);
|
|
|
|
|
input.setLabel(label);
|
|
|
|
|
input.setRules(rules);
|
|
|
|
|
return input;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -122,12 +117,11 @@ public class OrganizationFormItemUtil {
|
|
|
|
|
* @param viewAttr
|
|
|
|
|
* @param isQuickSearch
|
|
|
|
|
* @param label
|
|
|
|
|
* @param rules
|
|
|
|
|
* @param type
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
public static SearchConditionItem browserItem(User user,int colSpan, int fieldcol,
|
|
|
|
|
int viewAttr,boolean isQuickSearch,String label,String rules,String type,String name) {
|
|
|
|
|
int viewAttr,boolean isQuickSearch,String label,String type,String name) {
|
|
|
|
|
ConditionFactory conditionFactory = new ConditionFactory(user);
|
|
|
|
|
SearchConditionItem browser = conditionFactory.createCondition(ConditionType.BROWSER,502327,name,type);
|
|
|
|
|
browser.setColSpan(colSpan);
|
|
|
|
@ -135,7 +129,6 @@ public class OrganizationFormItemUtil {
|
|
|
|
|
browser.setViewAttr(viewAttr);
|
|
|
|
|
browser.setIsQuickSearch(isQuickSearch);
|
|
|
|
|
browser.setLabel(label);
|
|
|
|
|
browser.setRules(rules);
|
|
|
|
|
return browser;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -147,18 +140,16 @@ public class OrganizationFormItemUtil {
|
|
|
|
|
* @param fieldcol
|
|
|
|
|
* @param viewAttr
|
|
|
|
|
* @param label
|
|
|
|
|
* @param rules
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
public static SearchConditionItem rangeDateItem(User user,int colSpan, int fieldcol,int viewAttr
|
|
|
|
|
,String label,String rules,String name1,String name2) {
|
|
|
|
|
,String label,String name1,String name2) {
|
|
|
|
|
ConditionFactory conditionFactory = new ConditionFactory(user);
|
|
|
|
|
SearchConditionItem rangeDate = conditionFactory.createCondition(ConditionType.TIMEPICKER,502327,new String[]{name1,name2});
|
|
|
|
|
rangeDate.setColSpan(colSpan);
|
|
|
|
|
rangeDate.setFieldcol(fieldcol);
|
|
|
|
|
rangeDate.setViewAttr(viewAttr);
|
|
|
|
|
rangeDate.setLabel(label);
|
|
|
|
|
rangeDate.setRules(rules);
|
|
|
|
|
return rangeDate;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|