- DynamicForm
var form = isc.DcDynamicForm.create({
width: "100%",
height: "100%",
numCols: 3,
autoDraw: false,
// colWidths: ["30%", "20%", "30%", "20%", "30%", "20%"],
fields: [
{name: "project", title: "项目 :", width: "", disabled: true, colSpan: 2, type: "staticText"},
{name: "build_money", title: "搭建费 :", width: "", colSpan: 2, type: "staticText"},
{name: "place_money", title: "场地费 :", width: "", colSpan: 2, type: "staticText"},
{name: "equipment_money", title: "设备费 :", width: "", colSpan: 2, type: "staticText"},
{name: "make_money", title: "制作费 :", width: "", colSpan: 2, type: "staticText"},
{name: "publicity_money", title: "宣传费 :", width: "", colSpan: 2, type: "staticText"},
{name: "other_service_money", title: "第三方服务费 :", width: "", colSpan: 2, type: "staticText"},
{name: "other", title: "其他 :", width: "", colSpan: 2, type: "staticText"},
{name: "declare_total_money", title: "重点创业活动申报资金总额 :", width: "", colSpan: 2, type: "staticText"},
]
});
分组
{
value: " 专业技术服务平台",
type: "header",
height: 20,
width: "100%"
},
- list
功能:
a.序号自定义 . b.操作添加了点击事件.c.下载.
var jzz2Form = isc.DcListGrid.create({
showHeaderMenuButton: false,
width: "100%", height: "100%",
canHover: true,
autoDraw: false,
showHover: true,
fields: [
{
title: "序号",
name: "SERIALNO",
align: "center",
width: 35,
formatCellValue: function (value, record, rowNum, colNum) {
return rowNum + 1
}
},
{name: "id", hidden: true},
{name: "number", title: "序号", width: "*"},
{name: "company_name", title: "企业名称", width: "*"},
{name: "company_contact", title: "企业联系人", width: "*"},
{
title: "操作",
name: "id",
align: "center",
formatCellValue: function (value, record, rowNum, colNum, grid) {
return "<a href = \"#\" onclick=\"recordFunction('" + record.id + "')\">查看</a >";
},
width: "*",
canExport: false
},
{
name: "download_attach", title: "操作", width: "10%",
type: "link",
align: "center",
target: "_self",
linkText: "下载"
}
]
});
- 组合js
var cishi = isc.VLayout.create({
width: "100%",
height: "1000px",
autoDraw: true,
members: [
sqbt,
jzz1Form,
jzz2Form,
dl1Form,
dl2Form,
qianyan1Form,
qianyan2Form,
dujiaoshou1Form,
dujiaoshou2Form
]
});
4.tab
var companyTab = isc.TabSet.create({
tabBarPosition: "top",
width: "100%",
autoDraw: false,
height: "100%",
tabs: [
{title: "服务机构", pane: serviceOrgDetail},
{title: "支持资金申请项目", pane: declarationDetail},
{title: "高成长企业的支持", pane: cishi},
{title: "重点创业活动的支持", pane: declarationDetail2},
{title: "活动情况", pane: cishi2},
// {title: "获奖项目", pane: huojiangForm},
{title: "审核记录", pane: examineInfo}
]
});
- 初始化赋值
function initCompanyPage(projectPackageId) {
packageId = projectPackageId;
var eventinfo = ServiceChannel.SynchronizedSendMsg(thisurl, "projectManageService", "queryListedByProjectPackageId", {"project_package_id": projectPackageId});
if (eventinfo != null) {
companyListItem.setData(eventinfo);
}
};