|
向小铎
发表于 2020-11-6 16:04:14
this.D001599F8f47158dca8e450dbdcc2abb00c146d7.BindChange( 'key', function( res ) {//这里通过“操作”的可写不可写,来控制“子表内容”的可写
if( res[ 0 ].DataField == "D001599F8f47158dca8e450dbdcc2abb00c146d7.Handler" ) {
**();
var Handler = parent.D001599F8f47158dca8e450dbdcc2abb00c146d7.GetCellManager( res[ 0 ].ObjectId, "D001599F8f47158dca8e450dbdcc2abb00c146d7.Handler" ).GetValue();
debugger
if( Handler == "可写" ) {
parent.D001599F8f47158dca8e450dbdcc2abb00c146d7.GetCellManager( res[ 0 ].ObjectId, "D001599F8f47158dca8e450dbdcc2abb00c146d7.txtName" ).SetReadonly( false );
} else {
parent.D001599F8f47158dca8e450dbdcc2abb00c146d7.GetCellManager( res[ 0 ].ObjectId, "D001599F8f47158dca8e450dbdcc2abb00c146d7.txtName" ).SetReadonly( true );
}
}
debugger;
})
|
|