private void CreateRowRuleUD100CheckBox01Equals_False() { // Description: PackSlipComments // **** begin autogenerated code **** RuleAction disabledUD100_Character02 = RuleAction.AddControlSettings(this.oTrans, "UD100.Character02", SettingStyle.Disabled); RuleAction[] ruleActions = new RuleAction[] { disabledUD100_Character02 }; // Create RowRule and add to the EpiDataView. RowRule rrCreateRowRuleUD100CheckBox01Equals_False = new RowRule("UD100.CheckBox01", RuleCondition.Equals, false, ruleActions); ((EpiDataView)(this.oTrans.EpiDataViews["UD100"])).AddRowRule(rrCreateRowRuleUD100CheckBox01Equals_False); // **** end autogenerated code **** }
private void setupRowRules() { // Description: Visibility Rule // **** begin autogenerated code **** RuleAction disableCFICode = RuleAction.AddControlSettings(this.oTrans, "APTran.CNCFICode", SettingStyle.ReadOnly); RuleAction[] ruleActions = new RuleAction[] { disableCFICode }; RowRule ruleDisableCFICode = new RowRule(null, new RowRuleConditionDelegate2(CFICodeEnabled), null, ruleActions); ((EpiDataView)(this.oTrans.EpiDataViews["APTran"])).AddRowRule(ruleDisableCFICode); RuleAction disableTaxDtlCFICode = RuleAction.AddControlSettings(this.oTrans, "APTTaxDtl.CNCFICode", SettingStyle.ReadOnly); RuleAction[] ruleActionsTaxDtl = new RuleAction[] { disableTaxDtlCFICode }; RowRule ruleDisableTaxDtlCFICode = new RowRule(null, new RowRuleConditionDelegate2(CFICodeEnabled), null, ruleActionsTaxDtl); ((EpiDataView)(this.oTrans.EpiDataViews["APTTaxDtl"])).AddRowRule(ruleDisableTaxDtlCFICode); RuleAction disableTaxCFICode = RuleAction.AddControlSettings(this.oTrans, "TaxDtl.CNCFICode", SettingStyle.ReadOnly); RuleAction[] ruleActionsTax = new RuleAction[] { disableTaxCFICode }; RowRule ruleDisableTaxCFICode = new RowRule(null, new RowRuleConditionDelegate2(CFICodeEnabled), null, ruleActionsTax); ((EpiDataView)(this.oTrans.EpiDataViews["TaxDtl"])).AddRowRule(ruleDisableTaxCFICode); RuleAction disableBFCFICode = RuleAction.AddControlSettings(this.oTrans, "BankTran.CNCFICode", SettingStyle.ReadOnly); RuleAction[] ruleActionsBF = new RuleAction[] { disableBFCFICode }; RowRule ruleDisableBFCFICode = new RowRule(null, new RowRuleConditionDelegate2(CFICodeEnabled), null, ruleActionsBF); ((EpiDataView)(this.oTrans.EpiDataViews["BankTran"])).AddRowRule(ruleDisableBFCFICode); RuleAction disableBFCFICodeTax = RuleAction.AddControlSettings(this.oTrans, "BankTranTaxDtl.CNCFICode", SettingStyle.ReadOnly); RuleAction[] ruleActionsBFTax = new RuleAction[] { disableBFCFICodeTax }; RowRule ruleDisableBFCFICodeTax = new RowRule(null, new RowRuleConditionDelegate2(CFICodeEnabled), null, ruleActionsBFTax); ((EpiDataView)(this.oTrans.EpiDataViews["BankTranTaxDtl"])).AddRowRule(ruleDisableBFCFICodeTax); // **** end autogenerated code **** }