private void tsAttachRule_Click(object sender, EventArgs e)
 {
     RuleSetupFm.SetEntityRule(AttachGrdBind.Current as BaseEntity);
 }
 protected void tsRule_Click(object sender, EventArgs e)
 {
     RuleSetupFm.SetEntityRule(MainGrdBind.Current as BaseEntity);
 }