コード例 #1
0
        private void Update_Rule()
        {
            Business_Rules.Update_RulesName(Rule_information.Id, Txt_RuleName.Text);
            var textBox = Business_Rules.Search_Rule_Information_Text_Boxs(Rule_information.Id);

            Business_Rules.Update_Rule_Information_Text_Boxs(textBox.Id, Txt_Statement.Text, Txt_Constraint.Text, Txt_Field_Names.Text, Txt_Table_Names.Text, Txt_Action_Taken.Text);
            var logical_elements = Business_Rules.Search_Logical_Elements(Rule_information.Id);

            Business_Rules.Update_Logical_Elements(checkBox_Key_Type.Checked, checkBox_Key_Structure.Checked, checkBox_Uniqueness.Checked, checkBox_NullSupport.Checked, checkBox_Values_Entered_By.Checked, checkBox_Required_Value.Checked, checkBox_Default_Value.Checked, checkBox_Ranges_Values.Checked, checkBox_Comparisons_Allowed.Checked, checkBox_Operations_Allowed.Checked, checkBox_Edit_Rule.Checked, logical_elements.Id);
            var physical_elements = Business_Rules.Search_Physical_Elements(Rule_information.Id);

            Business_Rules.Update_Physical_Elements(checkBox_Data_Type.Checked, checkBox_Length.Checked, checkBox_Decimal_Places.Checked, checkBox_Character_Support.Checked, checkBox_Input_Mask.Checked, checkBox_Display_Format.Checked, physical_elements.Id);
            var relationship_characteristics_affected = Business_Rules.Search_Relationship_Characteristics_Affected(Rule_information.Id);

            Business_Rules.Update_Relationship_Characteristics_Affected(checkBox_Deletion_Rule.Checked, checkBox_Type_Participation.Checked, checkBox_Degree_Participation.Checked, relationship_characteristics_affected.Id);
            var type = Business_Rules.Search_Type(Rule_information.Id);

            Business_Rules.Update_Type(checkBox_Database_Oriented.Checked, checkBox_Application_Oriented.Checked, type.Id);
            var categories = Business_Rules.Search_Categories(type.Id);

            Business_Rules.Update_Categories(checkBox_Field_Specific.Checked, checkBox_Relationship_Specific.Checked, categories.Id);
            var test_on = Business_Rules.Search_Test_On(type.Id);

            Business_Rules.Update_Test_On(checkBox_Insert.Checked, checkBox_Update.Checked, checkBox_Delete.Checked, test_on.Id);
        }
コード例 #2
0
        private void Logical_Elements()
        {
            var businessRuleLogicalElements = Business_Rules.Search_Logical_Elements(Rule_information.Id);

            checkBox_Key_Type.Checked            = Convert.ToBoolean(businessRuleLogicalElements.Key_type);
            checkBox_Key_Structure.Checked       = Convert.ToBoolean(businessRuleLogicalElements.Key_structure);
            checkBox_Uniqueness.Checked          = Convert.ToBoolean(businessRuleLogicalElements.Uniqueness);
            checkBox_NullSupport.Checked         = Convert.ToBoolean(businessRuleLogicalElements.Null_support);
            checkBox_Values_Entered_By.Checked   = Convert.ToBoolean(businessRuleLogicalElements.Values_entered_by);
            checkBox_Required_Value.Checked      = Convert.ToBoolean(businessRuleLogicalElements.Required_value);
            checkBox_Default_Value.Checked       = Convert.ToBoolean(businessRuleLogicalElements.Default_value);
            checkBox_Ranges_Values.Checked       = Convert.ToBoolean(businessRuleLogicalElements.Ranges_of_values);
            checkBox_Comparisons_Allowed.Checked = Convert.ToBoolean(businessRuleLogicalElements.Comparisons_allowed);
            checkBox_Operations_Allowed.Checked  = Convert.ToBoolean(businessRuleLogicalElements.Operations_allowed);
            checkBox_Edit_Rule.Checked           = Convert.ToBoolean(businessRuleLogicalElements.Edit_rule);
        }