列表完全使用自繪,沒有使用任何控件,減少句柄占用,提高繪制效率,雙緩沖減少閃爍,前二年為某大型醫葯軟件公司開發,如果有需要類似功能的朋友可以聯系,模擬數據全是肺炎病例,當前新冠病毒肆虐全球,當初是不是有點先知的意思呢。
1、界面
2、設計器
3、TitleView
4、單個卡片配置文件
{
"BackColor": "White",
"Width": 280,
"Height": 110,
"CardItemList": [
{
"LineWidth": 0,
"TextFont": "宋體, 11pt, style=Bold",
"Rect": "2, 2, 200, 30",
"BackColor": "DarkGreen",
"ForeColor": "DarkOrange",
"Img": "",
"IsClickable": false,
"IsHaveTip": false,
"IsCanCheck": false,
"IsChecked": false,
"Name": "head",
"Text": "",
"TextAlign": "Near",
"TextLineAlign": "Near",
"Visible": false,
"ToolTipText": "",
"Shape": "",
"Group": "",
"ItemType": "Label",
"Tag": "",
"FeildName": ""
},
{
"LineWidth": 0,
"TextFont": "宋體, 11pt, style=Bold",
"Rect": "2, 6, 24, 24",
"BackColor": "White",
"ForeColor": "DarkOrange",
"Img": "uncheck",
"IsClickable": true,
"IsHaveTip": false,
"IsCanCheck": true,
"IsChecked": false,
"Name": "collect",
"Text": "",
"TextAlign": "Near",
"TextLineAlign": "Near",
"Visible": true,
"ToolTipText": "",
"Shape": "",
"Group": "",
"ItemType": "Label",
"Tag": "",
"FeildName": ""
},
{
"LineWidth": 0,
"TextFont": "宋體, 12pt, style=Bold",
"Rect": "30, 10, 40, 20",
"BackColor": "White",
"ForeColor": "Black",
"Img": "",
"IsClickable": false,
"IsHaveTip": false,
"IsCanCheck": false,
"IsChecked": false,
"Name": "PatientName",
"Text": "姓名",
"TextAlign": "Near",
"TextLineAlign": "Near",
"Visible": true,
"ToolTipText": "",
"Shape": "",
"Group": "",
"ItemType": "Label",
"Tag": "",
"FeildName": "PatientName"
},
{
"LineWidth": 0,
"TextFont": "宋體, 11pt",
"Rect": "80, 10, 120, 20",
"BackColor": "Transparent",
"ForeColor": "106, 212, 221",
"Img": "",
"IsClickable": false,
"IsHaveTip": false,
"IsCanCheck": false,
"IsChecked": false,
"Name": "PatientGender",
"Text": "性別",
"TextAlign": "Near",
"TextLineAlign": "Near",
"Visible": true,
"ToolTipText": "",
"Shape": "",
"Group": "",
"ItemType": "Label",
"Tag": "",
"FeildName": "PatientGender"
},
{
"LineWidth": 0,
"TextFont": "宋體, 11pt",
"Rect": "120, 10, 120, 20",
"BackColor": "White",
"ForeColor": "Black",
"Img": "",
"IsClickable": false,
"IsHaveTip": false,
"IsCanCheck": false,
"IsChecked": false,
"Name": "PatientAge",
"Text": "年齡",
"TextAlign": "Near",
"TextLineAlign": "Near",
"Visible": true,
"ToolTipText": "",
"Shape": "",
"Group": "",
"ItemType": "Label",
"Tag": "",
"FeildName": "PatientAge"
},
{
"LineWidth": 0,
"TextFont": "宋體, 11pt",
"Rect": "200, 10, 60, 20",
"BackColor": "White",
"ForeColor": "Black",
"Img": "",
"IsClickable": false,
"IsHaveTip": false,
"IsCanCheck": false,
"IsChecked": false,
"Name": "PatientBed",
"Text": "3F-01001",
"TextAlign": "Near",
"TextLineAlign": "Near",
"Visible": true,
"ToolTipText": "",
"Shape": "",
"Group": "",
"ItemType": "Label",
"Tag": "",
"FeildName": ""
},
{
"LineWidth": 1,
"TextFont": "宋體, 11pt, style=Bold",
"Rect": "10, 30, 250, 5",
"BackColor": "222, 222, 222",
"ForeColor": "222, 222, 222",
"Img": "",
"IsClickable": false,
"IsHaveTip": false,
"IsCanCheck": false,
"IsChecked": false,
"Name": "line1",
"Text": "",
"TextAlign": "Near",
"TextLineAlign": "Near",
"Visible": true,
"ToolTipText": "",
"Shape": "",
"Group": "",
"ItemType": "Line",
"Tag": "",
"FeildName": ""
},
{
"LineWidth": 0,
"TextFont": "宋體, 11pt",
"Rect": "10, 35, 40, 20",
"BackColor": "White",
"ForeColor": "Black",
"Img": "",
"IsClickable": false,
"IsHaveTip": false,
"IsCanCheck": false,
"IsChecked": false,
"Name": "labelDiseaseType",
"Text": "肺炎",
"TextAlign": "Center",
"TextLineAlign": "Center",
"Visible": true,
"ToolTipText": "",
"Shape": "",
"Group": "",
"ItemType": "Label",
"Tag": "",
"FeildName": ""
},
{
"LineWidth": 0,
"TextFont": "宋體, 10pt",
"Rect": "210, 35, 22, 22",
"BackColor": "251, 92, 110",
"ForeColor": "White",
"Img": "",
"IsClickable": false,
"IsHaveTip": true,
"IsCanCheck": false,
"IsChecked": false,
"Name": "labelState1",
"Text": "危",
"TextAlign": "Center",
"TextLineAlign": "Center",
"Visible": true,
"ToolTipText": "心力衰竭",
"Shape": "",
"Group": "",
"ItemType": "RoundDigit",
"Tag": "",
"FeildName": ""
},
{
"LineWidth": 0,
"TextFont": "宋體, 10pt",
"Rect": "235, 35, 22, 22",
"BackColor": "251, 92, 110",
"ForeColor": "White",
"Img": "",
"IsClickable": false,
"IsHaveTip": true,
"IsCanCheck": false,
"IsChecked": false,
"Name": "labelState2",
"Text": "敏",
"TextAlign": "Center",
"TextLineAlign": "Center",
"Visible": true,
"ToolTipText": "頭孢過敏",
"Shape": "",
"Group": "",
"ItemType": "RoundDigit",
"Tag": "",
"FeildName": ""
},
{
"LineWidth": 0,
"TextFont": "宋體, 11pt",
"Rect": "10, 55, 150, 20",
"BackColor": "White",
"ForeColor": "Black",
"Img": "",
"IsClickable": false,
"IsHaveTip": false,
"IsCanCheck": false,
"IsChecked": false,
"Name": "HospitalDay",
"Text": "住院天數",
"TextAlign": "Near",
"TextLineAlign": "Near",
"Visible": true,
"ToolTipText": "",
"Shape": "",
"Group": "",
"ItemType": "Label",
"Tag": "",
"FeildName": ""
},
{
"LineWidth": 0,
"TextFont": "宋體, 11pt",
"Rect": "10, 75, 120, 20",
"BackColor": "White",
"ForeColor": "Black",
"Img": "",
"IsClickable": false,
"IsHaveTip": false,
"IsCanCheck": false,
"IsChecked": false,
"Name": "label1",
"Text": "職工醫保",
"TextAlign": "Near",
"TextLineAlign": "Near",
"Visible": true,
"ToolTipText": "",
"Shape": "",
"Group": "",
"ItemType": "Label",
"Tag": "",
"FeildName": ""
},
{
"LineWidth": 0,
"TextFont": "宋體, 11pt",
"Rect": "80, 75, 100, 20",
"BackColor": "White",
"ForeColor": "Black",
"Img": "",
"IsClickable": false,
"IsHaveTip": false,
"IsCanCheck": false,
"IsChecked": false,
"Name": "labelMedicalInsurance",
"Text": "¥1256.00",
"TextAlign": "Near",
"TextLineAlign": "Near",
"Visible": true,
"ToolTipText": "",
"Shape": "",
"Group": "",
"ItemType": "Label",
"Tag": "",
"FeildName": ""
},
{
"LineWidth": 0,
"TextFont": "宋體, 10pt",
"Rect": "165, 75, 100, 100",
"BackColor": "88, 156, 229",
"ForeColor": "White",
"Img": "",
"IsClickable": false,
"IsHaveTip": false,
"IsCanCheck": false,
"IsChecked": false,
"Name": "label2",
"Text": "檢查檢驗 5",
"TextAlign": "Near",
"TextLineAlign": "Near",
"Visible": true,
"ToolTipText": "",
"Shape": "",
"Group": "",
"ItemType": "RoundRect",
"Tag": "",
"FeildName": ""
}
]
}