//public DataSet GetSelectedValueToDataSet() //{ // DataSet dsStep = new DataSet(Definition.CONDITION_KEY_STEP_NAME); // if (_dtStep != null) // { // DataTable dtStep = _dtStep.Copy(); // dtStep.Rows.Clear(); // LinkedList list = new LinkedList(); // for (int i = 0; i < st_step.Rows.Count; i++) // { // if (bsprStep.GetCellValue(i, 0) != null) // { // string check = bsprStep.GetCellValue(i, 0).ToString(); // if (check.ToUpper() == ("true").ToUpper()) // { // dtStep.Rows.Add(_dtStep.Rows[i].ItemArray); // } // } // } // dsStep.Tables.Add(dtStep); // } // return dsStep; //} public DataSet GetSelectedValueToDataSet() { BSpreadUtility utility = new BSpreadUtility(); DataSet ds = utility.GetSelectedDataSet(bsprStep, 0); ds.Tables[0].Columns[Definition.CONDITION_KEY_STEP_ID].ColumnName = Definition.DynamicCondition_Search_key.DISPLAYDATA; ds.Tables[0].Columns[Definition.CONDITION_KEY_RAWID].ColumnName = Definition.DynamicCondition_Search_key.VALUEDATA; return(ds); }
public DataSet GetSelectedValueToDataSet() { BSpreadUtility utility = new BSpreadUtility(); DataSet ds = utility.GetSelectedDataSet(bsprParam, 0); ds.Tables[0].Columns[Definition.CONDITION_KEY_MODEL_NAME].ColumnName = Definition.DynamicCondition_Search_key.DISPLAYDATA; if (ds.Tables[0].Columns[Definition.CONDITION_KEY_RAWID] == null) { ds.Tables[0].Columns.Add(Definition.CONDITION_KEY_RAWID, typeof(string)); } ds.Tables[0].Columns[Definition.CONDITION_KEY_RAWID].ColumnName = Definition.DynamicCondition_Search_key.VALUEDATA; return(ds); }