this.checkBoxEnable.Checked = ( (field.EnFieldAttribute & (long)FieldAttribute.AttrEnable) == (long)FieldAttribute.AttrEnable);

this.checkBoxRequired.Checked = ( (field.EnFieldAttribute & (long)FieldAttribute.AttrRequired) == (long)FieldAttribute.AttrRequired);

this.checkSort.Checked = ( (field.EnFieldAttribute & (long)FieldAttribute.AttrSort) == (long)FieldAttribute.AttrSort);

this.checkBoxKeep.Checked = ( (field.EnFieldAttribute & (long)FieldAttribute.AttrKeep) == (long)FieldAttribute.AttrKeep);

this.checkEditable.Checked = ( (field.EnFieldAttribute & (long)FieldAttribute.AttrEditable) == (long)FieldAttribute.AttrEditable);

 

public enum FieldAttribute:long

{

AttrEnable = 0x10000000,

AttrMulti = 0x00000001,

AttrRequired = 0x00000002,

AttrKeep = 0x00000004,

AttrEditable = 0x00000008,

AttrSort = 0x00000010,

AttrRecogMask = 0x0000F000,

AttrRecogOCR = 0x00000000,

AttrRecogBarcode = 0x00001000,

AttrRecogNone = 0x00008000

}

Posted on 2007-06-26 18:30  Blue  阅读(1098)  评论(0)    收藏  举报