public List <C_PARAMETER> Get_Interface_Parameter_1(string Function_Name, OleExec DB, DB_TYPE_ENUM DBType) { string Message = ""; List <C_PARAMETER> ListInterface = new List <C_PARAMETER>(); Dictionary <string, string> Dic_Interface = new Dictionary <string, string>(); string StrSql = $@"select parameter_name,parameter_value from C_PARAMETER where function_name='{Function_Name}' ";; DataTable dt = DB.ExecSelect(StrSql).Tables[0]; if (dt.Rows.Count > 0) { foreach (DataRow dr in dt.Rows) { C_PARAMETER Row = GetRow(dr); ListInterface.Add(Row); } return(ListInterface); } else { if (dt.Rows.Count > 1) { Message = "配置信息有多筆!"; } else if (dt.Rows.Count == 0) { Message = "信息未配置"; } return(null); } }
public C_PARAMETER GetDataObject() { C_PARAMETER DataObject = new C_PARAMETER(); DataObject.ID = this.ID; DataObject.FUNCTION_NAME = this.FUNCTION_NAME; DataObject.PARAMETER_NAME = this.PARAMETER_NAME; DataObject.PARAMETER_VALUE = this.PARAMETER_VALUE; DataObject.SEQ_NO = this.SEQ_NO; DataObject.DESCRIPTION = this.DESCRIPTION; DataObject.EDIT_EMP = this.EDIT_EMP; DataObject.EDIT_TIME = this.EDIT_TIME; return(DataObject); }