コード例 #1
0
        public R_Input_Action CreateInputActionClass(DataRow dr)
        {
            Row_R_Input_Action row = (Row_R_Input_Action)NewRow();

            row.loadData(dr);
            return(row.GetDataObject());
        }
コード例 #2
0
        public List <R_Input_Action> GetActionByInputID(string _InputID, OleExec DB)
        {
            string strsql             = "";
            List <R_Input_Action> RET = new List <R_Input_Action>();

            if (DBType == DB_TYPE_ENUM.Oracle)
            {
                strsql = $@"select * from R_Input_Action r where r.input_id = '{_InputID}' ";
                DataSet res1 = DB.ExecSelect(strsql);
                for (int i = 0; i < res1.Tables[0].Rows.Count; i++)
                {
                    Row_R_Input_Action R = (Row_R_Input_Action)this.NewRow();
                    R.loadData(res1.Tables[0].Rows[i]);
                    RET.Add(R.GetDataObject());
                }
                return(RET);
            }
            else
            {
                string errMsg = MESReturnMessage.GetMESReturnMessage("MES00000019", new string[] { DBType.ToString() });
                throw new MESReturnMessage(errMsg);
            }
        }