Пример #1
0
        public ActivityConfig.ActivityFieldDataTable Load()
        {
            this.sqlDa.SelectCommand = sqlSelectAll;

            ActivityConfig.ActivityFieldDataTable dt = new ActivityConfig.ActivityFieldDataTable();
            Fill(dt);
            return(dt);
        }
Пример #2
0
        public ActivityConfig.ActivityFieldDataTable LoadByActivityCodeID(int ActivityCodeID)
        {
            this.sqlDa.SelectCommand = sqlSelect;
            this.sqlSelect.Parameters.Clear();
            this.sqlSelect.CommandText = "[ActivityFieldSelectByActivityCodeID]";
            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("@ActivityCodeID", System.Data.SqlDbType.Int, 4, System.Data.ParameterDirection.Input, false, ((System.Byte)(10)), ((System.Byte)(0)), "", System.Data.DataRowVersion.Current, null));
            this.sqlSelect.Parameters["@ActivityCodeID"].Value = ActivityCodeID;

            ActivityConfig.ActivityFieldDataTable dt = new ActivityConfig.ActivityFieldDataTable();
            Fill(dt);
            return(dt);
        }
Пример #3
0
 internal ActivityFieldBE(ACManager pBEMng)
     : base(pBEMng, pBEMng.DB.ActivityField)
 {
     myA = pBEMng;
     myActivityFieldDT = (ActivityConfig.ActivityFieldDataTable)myDT;
 }