目的: V30702F : 1>設定日期格式: YYYY/MM/DD HH/MM
2>欄位 readonly
3> renderer: 不可加 "" , 否則Template[xls匯出]時, 會一直轉圈圈
{header:"數量",dataIndex:"QTY",width:30,align:"right",TMType:"float",renderer:Ext.util.Format.numberRenderer('000,000.00')},
處理說明: 1>設定日期格式: YYYY/MM/DD HH/MM -> 2024/01/05 11:05
{ header: "執行時間",
dataIndex: "TATM", width: 150, sortable: false, TMType: "date",
renderer: Ext.util.Format.dateRenderer('Y/m/d H:i') },
2>設定欄位 readOnlysetFieldsCls('mySubFormA',[], //required
['sub_TASKNO', 'sub_RQMAN', 'sub_RQDT', 'sub_RQDEP', 'sub_STLC', 'sub_EDLC', 'sub_TASKREMARK'], //readonly
[]);
1>*.js
var sub_Columns = [
{ header: "", xtype: "rownumberer", width: 50, align: "center", sortable: false },
// { header: "派遣申請單號", dataIndex: "TASKNO", width: 130, sortable: false, TMType: "string" },
{ header: "項次", dataIndex: "ITM", width: 30, sortable: false },
{ header: "執行人員", dataIndex: "TAMAN", width: 100, sortable: false, TMType: "string" },
{ header: "執行人員姓名", dataIndex: "TAMAN_", width: 100, sortable: false, TMType: "string" },
{ header: "執行時間", dataIndex: "TATM", width: 150, sortable: false, TMType: "date", renderer: Ext.util.Format.dateRenderer('Y/m/d H:i') },
{ header: "現況", dataIndex: "TP", width: 30, sortable: false, TMType: "string" },
{ header: "現況說明", dataIndex: "TP_" }
];
//欄位設為 ReadOnly
setFieldsCls('mySubFormA',
[], //required
['sub_TASKNO', 'sub_RQMAN', 'sub_RQDT', 'sub_RQDEP', 'sub_STLC', 'sub_EDLC', 'sub_TASKREMARK'], //readonly
[]);
沒有留言:
張貼留言