示例#1
0
        public CodesDB.ApptRecurrenceTypeDataTable Load()
        {
            this.sqlDa.SelectCommand = sqlSelectAll;

            CodesDB.ApptRecurrenceTypeDataTable dt = new CodesDB.ApptRecurrenceTypeDataTable();
            Fill(dt);
            return(dt);
        }
示例#2
0
        public CodesDB.ApptRecurrenceTypeDataTable Load(int ApptRecurrenceTypeID)
        {
            this.sqlDa.SelectCommand = sqlSelect;
            this.sqlSelect.Parameters.Clear();
            this.sqlSelect.CommandText = "[ApptRecurrenceTypeSelectByApptRecurrenceTypeID]";
            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("@ApptRecurrenceTypeID", System.Data.SqlDbType.Int, 4, System.Data.ParameterDirection.Input, false, ((System.Byte)(10)), ((System.Byte)(0)), "", System.Data.DataRowVersion.Current, null));

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

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