Exemple #1
0
        public override atriumDB.JudicialDistrictDataTable Load()
        {
            this.sqlDa.SelectCommand = sqlSelectAll;

            atriumDB.JudicialDistrictDataTable dt = new atriumDB.JudicialDistrictDataTable();
            Fill(dt);
            return(dt);
        }
Exemple #2
0
        public atriumDB.JudicialDistrictDataTable LoadByProvinceCode(string ProvinceCode)
        {
            this.sqlDa.SelectCommand = sqlSelect;
            this.sqlSelect.Parameters.Clear();
            this.sqlSelect.CommandText = "[JudicialDistrictSelectByProvinceCode]";
            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("@ProvinceCode", System.Data.SqlDbType.VarChar, 50, System.Data.ParameterDirection.Input, false, ((System.Byte)(10)), ((System.Byte)(0)), "", System.Data.DataRowVersion.Current, null));
            this.sqlSelect.Parameters["@ProvinceCode"].Value = ProvinceCode;

            atriumDB.JudicialDistrictDataTable dt = new atriumDB.JudicialDistrictDataTable();
            Fill(dt);
            return(dt);
        }