You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
DS7/DSWeb/Areas/MvcShipping/Viewsjs/Comm/CssComm.js

54 lines
1.2 KiB
JavaScript

2 years ago
Ext.namespace('Shipping');
//整行调整
Shipping.GetXGridRowClass = function (CssStatus) {
if (CssStatus == 1) {
return '样本1'; //红色删除线
}
else if (CssStatus == 2) {
//return '样本2'; //白色背景
return '';
}
else if (CssStatus == 3) {
return '样本3'; //橘红色背景
}
else if (CssStatus == 4) {
return '样本4'; //浅灰色背景
}
else if (CssStatus == 5) {
return '样本5'; //蓝色字体
}
else if (CssStatus == 6) {
return '样本6'; //橘红色字体
}
else {
return '';
}
}
//单元格调整
Shipping.GetXGridCellClass = function (CssStatus) {
if (CssStatus == 1) {
return '样本1'; //红色删除线
}
else if (CssStatus == 2) {
//return '样本7'; //白色背景
return '';
}
else if (CssStatus == 3) {
return '样本8'; //橘红色背景
}
else if (CssStatus == 4) {
return '样本9'; //浅灰色背景
}
else if (CssStatus == 5) {
return '样本5'; //蓝色字体
}
else if (CssStatus == 6) {
return '样本6'; //橘红色字体
}
else {
return '';
}
}