private void InitBindLue() { DataTable dtProperties = new BasePowerSetEntity().GetBasicPowerSetEngine_CommonData(string.Empty).Tables[BASE_ATTRIBUTE_FIELDS.DATABASE_TABLE_NAME]; DataTable dtControlPara = dtProperties.Clone(); DataRow[] drs02 = dtProperties.Select(string.Format("Column_type='{0}'", BASE_POWERSET.TESTRULE_CONTROLPARA)); foreach (DataRow dr in drs02) { dtControlPara.ImportRow(dr); } repositoryItemControl_obj.DisplayMember = "Column_Name"; repositoryItemControl_obj.ValueMember = "Column_code"; repositoryItemControl_obj.DataSource = dtControlPara; DataTable dtTestRule_Sign = dtProperties.Clone(); DataRow[] drs03 = dtProperties.Select(string.Format("Column_type='{0}'", BASE_POWERSET.TESTRULE_SIGN)); foreach (DataRow dr in drs03) { dtTestRule_Sign.ImportRow(dr); } repositoryItemControl_type.DisplayMember = "Column_Name"; repositoryItemControl_type.ValueMember = "Column_code"; repositoryItemControl_type.DataSource = dtTestRule_Sign; }
private void SPControlPlan_Load(object sender, EventArgs e) { afterStateChanged += new AfterStateChanged(onChangeControlState); DataTable dtProperties = new BasePowerSetEntity().GetBasicPowerSetEngine_CommonData(string.Empty).Tables[BASE_ATTRIBUTE_FIELDS.DATABASE_TABLE_NAME]; DataTable dtDecaySetting = dtProperties.Clone(); DataRow[] drs01 = dtProperties.Select(string.Format("Column_type='{0}'", BASE_POWERSET.BASE_DECAYSETTING)); foreach (DataRow dr in drs01) { dtDecaySetting.ImportRow(dr); } repositoryItemlue_dname.DisplayMember = "Column_Name"; repositoryItemlue_dname.ValueMember = "Column_code"; repositoryItemlue_dname.DataSource = dtDecaySetting; InitDataBind(); this.CtrlState = ControlState.ReadOnly; }