コード例 #1
0
        public CodesDB.CBPaymentSourceDataTable Load()
        {
            this.sqlDa.SelectCommand = sqlSelectAll;

            CodesDB.CBPaymentSourceDataTable dt = new CodesDB.CBPaymentSourceDataTable();
            Fill(dt);
            return(dt);
        }
コード例 #2
0
        public CodesDB.CBPaymentSourceDataTable Load(string CBPaymentSource)
        {
            this.sqlDa.SelectCommand = sqlSelect;
            this.sqlSelect.Parameters.Clear();
            this.sqlSelect.CommandText = "[CBPaymentSourceSelectByCBPaymentSource]";
            this.sqlSelect.Parameters.Add(new System.Data.SqlClient.SqlParameter("@RETURN_VALUE", System.Data.SqlDbType.Int, 4, System.Data.ParameterDirection.ReturnValue, false, ((System.Byte)(10)), ((System.Byte)(0)), "", System.Data.DataRowVersion.Current, null));
            this.sqlSelect.Parameters.Add(new System.Data.SqlClient.SqlParameter("@CBPaymentSource", System.Data.SqlDbType.NVarChar, 2, System.Data.ParameterDirection.Input, false, ((System.Byte)(10)), ((System.Byte)(0)), "", System.Data.DataRowVersion.Current, null));

            this.sqlSelect.Parameters["@CBPaymentSource"].Value = CBPaymentSource;

            CodesDB.CBPaymentSourceDataTable dt = new CodesDB.CBPaymentSourceDataTable();
            Fill(dt);
            return(dt);
        }