用不同颜色区分不同账套

此方法是在Class  SysSetupFormRun中  RUN()

curEXT用于获取当前公司账号;

public void run()
{
    super();

    this.design().colorScheme(2);

    switch (curEXT())
        {
        case '011' :
            this.design().backgroundColor(winapi::RGB2int(240,240,240));
            break;
        case '020' :
            this.design().backgroundColor(winapi::RGB2int(0,128,0));
            break;
        case '031' :
            this.design().backgroundColor(winapi::RGB2int(0,64,255));
            break;
        case '015' :
            this.design().backgroundColor(winapi::RGB2int(64,64,255));
            break;
        case '016' :
            this.design().backgroundColor(winapi::RGB2int(64,0,255));
            break;
        case '017' :
            this.design().backgroundColor(winapi::RGB2int(0,64,64));
            break;
        case '040' :
            this.design().backgroundColor(winapi::RGB2int(0,0,128));
            break;
        case '307' :
            this.design().backgroundColor(winapi::RGB2int(0,128,255));
            break;
        case '308' :
            this.design().backgroundColor(winapi::RGB2int(255,128,255));
            break;
        default :
            this.design().backgroundColor(winapi::RGB2int(212,208,200));
            break;
        }
        //this.design().backgroundColor(winapi::RGB2int(255,128,255));
}

posted @ 2012-03-01 11:48  perock  阅读(262)  评论(0编辑  收藏  举报