//压烫工艺单-添加部件
Ext.define('MVC.view.Business.Tech.lroningSubForm', {
extend: 'Ext.form.FieldSet',
alias: 'widget.BusinessTechlroningSubForm',
collapsible: true,
padding: 10,
margin: 5,
boder: false,
autoScroll: true,
initComponent: function () {
var me = this;
var required = '<span style="color:red;font-weight:bold" data-qtip="必输项">*</span>';
var cellEditing = Ext.create('Ext.grid.plugin.CellEditing', {
clicksToEdit: 1 //进入编辑状态的单击次数
});
Ext.applyIf(me, {
items: [

{
xtype: 'form',
type: 'headForm',
width: '800',
layout: {
columns: 5,
type: 'table',
tdAttrs: {
valign: 'top'
}
},
defaultType: 'checkboxfield',
fieldDefaults: {
labelWidth: 95,
labelAlign: 'left',
margin: '0 5 5 10',
width: 250
},
boder: false,
autoScroll: true,
bodyPadding: 5,
margins: '0 0 2 0',
items: [
{
xtype: 'container',
colspan: 5,
items: [
{
xtype: 'hiddenfield',
name: 'autoid'
},
{
xtype: 'hiddenfield',
name: 'id'
}
]
},
{
xtype: 'button',
text: '删除部件',
colspan: 5,
margin: '0 0 10 0',
iconCls: 'delete2',
name: 'deletePart'
},
{
fieldLabel: '压烫部位',
name: 'cLocation',
xtype: 'hiddenfield'
},
{
xtype: 'tbtext',
text: '类别:'
},
{
xtype: 'checkboxfield',
fieldLabel: '转印片',
labelAlign: 'right',
name: 'bTransfer',
checked: true,
inputValue: true,
uncheckedValue: false,
submitValue: true
},
{
fieldLabel: '烫钻(钉)',
name: 'bRhinestone',
inputValue: true,
uncheckedValue: false,
checked: true
},
{
fieldLabel: '切割片',
name: 'bCutting',
inputValue: true,
uncheckedValue: false,
checked: true
},
{
fieldLabel: '备胶纸',
name: 'bTape',
inputValue: true,
uncheckedValue: false,
checked: true
},
{
xtype: 'tbtext',
text: ''
},
{
fieldLabel: '其他',
name: 'bOther',
uncheckedValue: false,
inputValue: true,
checked: true
},
{
xtype: 'tbtext',
text: ''
},
{
xtype: 'tbtext',
text: ''
},
{
xtype: 'tbtext',
text: ''
},
Ext.create('Ext.ux.FileUploadField', {
fieldLabel: '压烫图案位置',
labelWidth: 95,
width: 300,
margin: '14 0 8 10',
buttonText: '上传',
name: 'cIroningPic',
docIDFieldName: 'autoid',
IDRequire: true, //是否必须有单据id(在单据保存前无id值)
btnEnableState: ['2'],
handleUrl: 'data/public/FileUpload.ashx', //后台处理类
srvSavePath: '~/upload/Ironings/ProcessGraph/', //文件保存路径(一般为相对路径)
docType: 'Ironings', //单据类型
colspan: 5
}),

{
xtype: 'textfield',
name: 'cOrientation',
fieldLabel: '定位要求',
width: 180,
margin: '12 0 20 10'
},
{
fieldLabel: '按稿1:1压烫',
labelWidth: 95,
name: 'bIroningRatio',
margin: '12 0 20 10',
inputValue: true,
uncheckedValue: false,
checked: true
},
{
xtype: 'tbtext',
text: ''
},
{
xtype: 'tbtext',
text: ''
},
{
xtype: 'tbtext',
text: ''
},

{
xtype: 'container',
colspan: 5,
height: 34,
html: "<div style='height:34px;line-height:34px;font-size: 16px; font-weight: bold; color: #000000; font-family: 宋体;text-align:center;letter-spacing:2em;'>样品操作及压烫要求</div>"
},
{
xtype: 'container',
colspan: 5,
height: 30,
html: "<div style='height:30px;line-height:30px;font-size: 14px;color: #000000; font-family: 宋体;'>******压烫前多余的胶纸沿花样边缘修剪整齐,待完全冷却后撕离(冷撕)</div>"
},
{
xtype: 'container',
colspan: 5,
height: 30,
html: "<div style='height:30px;line-height:30px;font-size: 14px;color: #000000; font-family: 宋体;'>******上层有粘性的胶纸压烫完成后保留上层胶纸,待完成帽子后再撕(防止后续操作中刮坏花样)</div>"
},

{
fieldLabel: '正压',
name: 'bPositivePressure',
inputValue: true,
uncheckedValue: false,
checked: true
},
{
fieldLabel: '反压',
name: 'bCounterPressure',
inputValue: true,
uncheckedValue: false,
checked: true

},
{
fieldLabel: '其他条件',
name: 'bOtherConditions',
inputValue: true,
uncheckedValue: false,
checked: true
},
{
xtype: 'tbtext',
text: ''
},
{
xtype: 'tbtext',
text: ''
},
{
xtype: 'container',
colspan: 5,
height: 34,
html: "<div style='height:34px;line-height:34px;font-size: 16px; font-weight: bold; color: #000000; font-family: 宋体;text-align:center;letter-spacing:2em;'>压烫机型及压烫参数</div>"
},
{
fieldLabel: '平版压烫机',
name: 'bFlatplatePressingMachine',
inputValue: true,
uncheckedValue: false,
checked: true
},
{
xtype:'textfield',
fieldLabel: '压力',
afterLabelTextTpl: '公斤/平方(Mpa)',
width:180,
name: 'fFlatplatePressure'
},
{
xtype: 'textfield',
fieldLabel: '时间',
afterLabelTextTpl: '秒',
width: 180,
name: 'fFlatplateTime'
},
{
xtype: 'textfield',
fieldLabel: '温度',
afterLabelTextTpl: '℃',
width: 180,
name: 'fFlatplateteMperature'
},
{
xtype: 'textfield',
fieldLabel: '至',
afterLabelTextTpl: '℃',
width: 180,
name: 'fFlatplateteToMperature'
},

{
fieldLabel: '有利压烫机',
name: 'bFavorablePressingMachine',
inputValue: true,
uncheckedValue: false,
checked: true
},
{
xtype: 'textfield',
fieldLabel: '压力',
afterLabelTextTpl: '公斤/平方(Mpa)',
width: 180,
name: 'fFavorablePressure'
},
{
xtype: 'textfield',
fieldLabel: '时间',
afterLabelTextTpl: '秒',
width: 180,
name: 'fFavorableTime'
},
{
xtype: 'textfield',
fieldLabel: '温度',
afterLabelTextTpl: '℃',
width: 180,
name: 'fFavorableMperature'
},
{
xtype: 'textfield',
fieldLabel: '至',
afterLabelTextTpl: '℃',
width: 180,
name: 'fFavorableToMperature'
},
{
fieldLabel: '双头压烫机',
name: 'bDoubleHeadPressingMachine',
inputValue: true,
uncheckedValue: false,
checked: true
},
{
xtype: 'textfield',
fieldLabel: '压力',
afterLabelTextTpl: '公斤/平方(Mpa)',
width: 180,
name: 'fDoubleHeadPressure'
},
{
xtype: 'textfield',
fieldLabel: '时间',
afterLabelTextTpl: '秒',
width: 180,
name: 'fDoubleHeadTime'
},
{
xtype: 'textfield',
fieldLabel: '温度',
afterLabelTextTpl: '℃',
width: 180,
name: 'fDoubleHeadMperature'
},
{
xtype: 'textfield',
fieldLabel: '至',
afterLabelTextTpl: '℃',
width: 180,
name: 'fDoubleHeadToMperature'
},
{
fieldLabel: '其他机型:',
name: 'bOtherPressingMachine',
inputValue: true,
uncheckedValue: false,
checked: true
},
{
xtype: 'textfield',
fieldLabel:'机型名称',
name: 'cOtherPerssingMachineName',
width: 180,
colspan:4

},
{
xtype: 'tbtext',
text: ''
},
{
xtype: 'textfield',
fieldLabel: '压力',
afterLabelTextTpl: '公斤/平方(Mpa)',
width: 180,
name: 'fOtherPressure'
},
{
xtype: 'textfield',
fieldLabel: '时间',
afterLabelTextTpl: '秒',
width: 180,
name: 'fOtherTime'
},
{
xtype: 'textfield',
fieldLabel: '温度',
afterLabelTextTpl: '℃',
width: 180,
name: 'fOtherMperature'
},
{
xtype: 'textfield',
fieldLabel: '至',
afterLabelTextTpl: '℃',
width: 180,
name: 'fOtherToMperature'
},

]
},

{
xtype: 'gridpanel',
type: 'grid1',
enableGridMemu: true, //允许右键菜单
exceptCopyColumns: ['autoid'], //不参与复制的列名(仅当enableGridMemu=true时有效)
plugins: [cellEditing],
store: Ext.create('MVC.store.Business.Tech.lroningSubDocumentGrid'),
columns: [
new Ext.grid.RowNumberer({
recordStart: 0,
renderer: function (value, metadata, record, rowIndex) {
return this.recordStart + 1 + rowIndex;
}
}),

{
dataIndex: 'cColor',
text: '面料色',
sortable: true,
width: 130,
editor: {
allowBlank: true

}
},
{
xtype: 'numbercolumn',
dataIndex: 'iQuantity',
text: '数量',
sortable: true,
width: 130,
editor: {
xtype: 'numberfield',
allowBlank: true,
regex: /^(([1-9]+[0-9]*.{1}[0-9]+)|([0].{1}[1-9]+[0-9]*)|([1-9][0-9]*)|([0][.][0-9]+[1-9]*))$/,
regexText: "输入数字必须大于等于0!",
allowDecimals: false, //不允许输入小数
format: '0'
}
},
{
dataIndex: 'cIroningColor',
text: '压烫配色',
sortable: true,
width: 130,
editor: {
allowBlank: true

}
}
],
viewConfig: {

},
dockedItems: [
{
xtype: 'toolbar',
dock: 'top',
items: [{
xtype: 'label',
margin: 5,
style: 'font-weight:bold;',
text: '特殊要求'
},
{
xtype: 'tbseparator'
},
{
xtype: 'button',
action: 'insertRow',
iconCls: 'insertRow',
text: '增行'
},
{
xtype: 'button',
action: 'deleteRow',
iconCls: 'deleteRow',
text: '删行'
}, '-',
{
xtype: 'button',
action: 'copyRow',
iconCls: 'copy',
text: '复制'
},
{
xtype: 'button',
action: 'pasteRow',
iconCls: 'paste_plain',
text: '粘贴'
}, '-', {
xtype: 'button',
action: 'insertBefore',
iconCls: 'insertRow',
text: '插入空行'
}]
}
]
}

]
});

me.callParent(arguments);
}

});

转载于:https://www.cnblogs.com/lhd404/p/7542726.html

当Ext.js中xtype: 'checkboxfield'时,没勾选则向后台发送的数据没有字段的解决方法...相关推荐

  1. js中按钮去触发定时器,那么多次点击这个定时器会越来越快,解决方法

    并不是越来越快, 而是越来越多; $('button:first').click(function(){ // 记录ID var timerId = setInterval(function(){ c ...

  2. Pycharm打开Project(工程)时停留在preparing workspace时间过长,导致打开很慢的解决方法...

    Pycharm打开Project(工程)时停留在preparing workspace时间过长,导致打开很慢的解决方法- 昊虹君用Pycharm进行Python的开发,一直用得好好的,也没作过什么异常 ...

  3. AndroidStudio安装SVN时忘记勾选command line client tools解决方案

    我们先说一下正确的安装SVN并配置到AndroidStudio过程: 首先在百度搜索并下载 TortoiseSVN 推荐从官网下载,软件分为32位和64位版本,下载时请根据自己的系统位数进行下载: 1 ...

  4. 后缀名.dat文件在选择打开方式时误勾选了用记事本打开, 结果电脑上的*.dat文件的打开方式都变成了记事本,没有修改文件的内容,如何恢复.bat文件的默认打开方式

    项目场景: 后缀名.dat文件在选择打开方式时误勾选了用记事本打开, 结果电脑上的*.dat文件的打开方式都变成了记事本,没有修改文件的内容 问题描述 后缀名.dat文件在选择打开方式时误勾选了用记事 ...

  5. xp系统运行php,window_Xp系统安装或运行软件时提示“EXE不是有效Win32应用程序”的故障原因及解决方法,部分Xp系统用户在双击安装某 - phpStudy...

    Xp系统安装或运行软件时提示"EXE不是有效Win32应用程序"的故障原因及解决方法 部分Xp系统用户在双击安装某个软件时,会遇到"EXE不是有效Win32应用程序&qu ...

  6. VMware中CentOS7 Failed to start LSB: Bring up/down networking和RTNETLINK answers: File exists错误解决方法

    VMware中CentOS7 Failed to start LSB: Bring up/down networking和RTNETLINK answers: File exists错误解决方法 问题 ...

  7. SAP S4HANA 账户组的配置里'Int.Std.Grping'选项没勾选导致ABAP程序报错

    SAP S4HANA 账户组的配置里'Int.Std.Grping'选项没勾选导致ABAP程序报错 BP,试图创建一个新的vendor code, 角色是ZGM001, Grouping是G001, ...

  8. js 定时器(setTimeout/setInterval)出现变量未定义(xxx is not defined) 的解决方法

    js 定时器(setTimeout/setInterval)出现变量未定义(xxx is not defined) 的解决方法 参考文章: (1)js 定时器(setTimeout/setInterv ...

  9. SQL Server 2008还原数据库时出现“备份集中的数据库备份与现有的数据库不同”的解决方法

    SQL Server 2008还原数据库时出现"备份集中的数据库备份与现有的数据库不同"的解决方法 参考文章: (1)SQL Server 2008还原数据库时出现"备份 ...

  10. 注册表编辑器厘米爱你找不到mysql,win7系统中安装mysql后找不到服务或出现找不到指定文件的解决方法...

    最近有用户到本站反馈说碰到这样一个情况,就是在电脑中安装mysql后,出现找不到服务或出现找不到指定文件的情况,碰到这样的问题该怎么办呢,接下来给大家讲解一下 1.如果你是5.0的版本,先用cmd进入 ...

最新文章

  1. 软件开发 自由职业_自由职业? 这里有7个可以出售软件开发服务的地方
  2. Linux kernel 编译问题记录【转】
  3. 记录一下python-opencv-ArUco-Apriltag
  4. 恶作剧程序之炸弹窗口
  5. Git使用命令行回退版本git reset --hard
  6. Linux下查看进程对应的命令绝对路径
  7. 华为联发科可以升级鸿蒙吗,华为鸿蒙系统降临!首批升级手机确定,联发科芯片被放弃?...
  8. java爬虫隐藏表单提交_java爬虫--jsoup简单的表单抓取案例
  9. 你的Parquet该升级了:IOException: totalValueCount == 0问题定位之旅
  10. Linux中$PATH详解
  11. 【干货】Python中几个有趣的函数
  12. 【QA】基于动态协同网络(DCN)的问答模型
  13. 剖析 |数据现代化-富国银行的数据转型之路
  14. eclipse java类图_Eclipse下生成/编辑Java类图或时序图(UML)[转载]
  15. 双拼输入法软件测试,为什么推荐你使用双拼输入法?
  16. 上海市青少年算法2022年6月月赛(丙组)
  17. 企业如何软件商业化? .
  18. TI C66x DSP 系统events及其应用 - 1
  19. 闲置硬盘自制nas私有云_旧笔记本电脑diy nas私有云
  20. 后台多条sql查询,json传前台,前台处理多条sql数据实例

热门文章

  1. 【渝粤教育】国家开放大学2018年春季 7392-22DMatlab语言及其应用 参考试题
  2. [渝粤教育] 中国地质大学 管理信息系统 复习题 (2)
  3. 【sklearn第四讲】数据集变换
  4. 矩阵分析 (七) 矩阵特征值的估计
  5. Texar安装、Textgenrnn安装
  6. 控制系统数字仿真与CAD-第一次实验-附完整代码
  7. Matplotlib 基本用法
  8. 使用对象-关系映射持久化数据
  9. 20145228《网络对抗》 后门原理与实践
  10. JAVA入门[14]-Spring MVC AOP