';
//}
/* #region label操作*/
//必填项加红*支持
if (item.ismust == true) {
musthtml = '
';
}
if (item.labtype == 'label') {
coltem = col * 4;
if (!item.addvisible && !item.editvisible && item.addvisible != undefined && item.editvisible != undefined) {
htmls += '
';
}
else {
if ((item.addvisible || item.addvisible == undefined) && !isEdit) {
htmls += '
';
}
if ((item.editvisible || item.editvisible == undefined) && isEdit) {
htmls += '
';
}
}
}
else {
coltemlable = col * 2;
var tooltiphtml=""
var toolltipfa = "";
if (item.tooltip != undefined)
{
tooltiphtml = ' data-toggle="tooltip" data-placement="bottom" title="' + item.tooltip + '"';
toolltipfa = '
';
}
if (!item.addvisible && !item.editvisible && item.addvisible != undefined && item.editvisible != undefined && item.labtype != 'hr') {
htmls += '
';
}
else {
//if ((item.colcount + (allcount % 3)) > 3) {
// htmls += '
';
//}
if (item.labtype == 'textarea') {
htmls += '
';
}
if ((item.addvisible || item.addvisible == undefined) && !isEdit && item.labtype != 'hr') {
htmls += '
';
}
if ((item.editvisible || item.editvisible == undefined) && isEdit && item.labtype != 'hr') {
htmls += '
';
}
}
}
if (item.labtype == "grid") {
htmls = '
';
}
if (item.labtype == "null") {
coltem = col * 4;
htmls += '
';
}
if (item.labtype == 'hr') {
var hrdisplay = '';
if (!item.addvisible && !item.editvisible && item.addvisible != undefined && item.editvisible != undefined) {
hrdisplay += 'display:none;';
}
else {
if ((item.addvisible || item.addvisible == undefined) && !isEdit) {
hrdisplay += 'display:block;';
}
else {
if (!item.addvisible && item.addvisible != undefined && !isEdit) {
hrdisplay += 'display:none;';
}
}
if ((item.editvisible || item.editvisible == undefined) && isEdit) {
hrdisplay += 'display:block;';
}
}
if (item.color == '' || item.color == undefined) {
item.color = '#e7eaec';
}
ctrlhtml += '
';
}
if (item.labtype == "txt") {
ctrlhtml = '
';
}
if (item.labtype == "number") {
ctrlhtml = '
';
}
if (item.labtype == 'date') {
ctrlhtml = '
';
ctrlhtml += ' onclick="laydate({ festival: true ,istoday: false,istime: true,start:laydate.now(0, \'YYYY-MM-DD' + starttimehtml + '\') , format: \'YYYY-MM-DD\'' + changeevent + '})" />
';
}
if (item.labtype == 'dateHM') {
ctrlhtml = '
';
ctrlhtml += ' onclick="laydate({ festival: true ,istoday: false,istime: true,start:laydate.now(0, \'YYYY-MM-DD hh:mm' + starttimehtml + '\') , format: \'YYYY-MM-DD hh:mm\'' + changeevent + '})" />
';
}
if (item.labtype == 'clockpicker')
{
ctrlhtml = '
';
ctrlhtml += '';
ctrlhtml += '
';
}
if (item.labtype == 'checkbox') {
ctrlhtml = '';
//支持多个多选框
if (item.data != '' && item.data != undefined && item.data != null) {
$.each(item.data, function (i, checkboxitem) {
ctrlhtml += '
';
});
}
else {
ctrlhtml = '
';
}
}
if (item.labtype == 'upload') {
ctrlhtml += '
';
}
if (item.labtype == 'combox') {
var showcohtm = "";
if (item.iscanadd != undefined && item.iscanadd)
{
showcohtm = "或录入";
}
ctrlhtml = '
';
}
//密码支持
if (item.labtype == 'password') {
ctrlhtml += '
';
}
if (item.labtype == 'email') {
ctrlhtml += '
';
}
/* #endregion*/
/* #region textarea支持*/
if (item.labtype == 'textarea') {
ctrlhtml += '
';
}
/* #endregion*/
/* #region radio支持*/
if (item.labtype == 'radio') {
if (item.data != null && item.data != undefined && item.data != '') {
var rdindex = 0;
$.each(item.data, function (i, radioitem) {
ctrlhtml += '
';
rdindex++;
});
}
else {
ctrlhtml += '
';
}
}
/* #endregion*/
/* #region explain支持*/
if (item.labtype == 'explain') {
ctrlhtml += '
' + item.label + '
';
}
/* #endregion*/
/* #region itxt支持*/
if (item.labtype == 'itxt') {
ctrlhtml += '
';
}
if ((!item.addvisible && !item.editvisible && item.addvisible != undefined && item.editvisible != undefined || item.labtype == 'null')) { }
else {
if ((col + (allcount % 3)) > 3) {
allcount += col + (3 - (allcount % 3));
}
coltem = col * 4;
if (item.labtype == 'textarea') coltem = 10;
if (item.labtype == 'hr') {
ctrlhtml = '
' + ctrlhtml + '
';
}
else {
ctrlhtml = '
' + ctrlhtml + '
';
}
}
if (item.labtype != 'grid') {
htmls += ctrlhtml;
}
//if((allcount) % 3 == 0 && allcount != 0){
// htmls += '
';
//}
if (n == (JsonData.length-1)) {
htmls += '