Exemple #1
0
        internal CostBE(CLASManager pBEMng) : base(pBEMng, pBEMng.DB.Cost)
        {
            myA      = pBEMng;
            myCostDT = (CLAS.CostDataTable)myDT;

            this.myCostDT.CostAmountColumn.ExtendedProperties.Add("format", "C");
            this.myCostDT.InterestRateColumn.ExtendedProperties.Add("format", "#0.0#\\%");
        }
Exemple #2
0
        public CLAS.CostDataTable Load()
        {
            this.sqlDa.SelectCommand = sqlSelectAll;

            CLAS.CostDataTable dt = new CLAS.CostDataTable();
            Fill(dt);
            return(dt);
        }
Exemple #3
0
        public CLAS.CostDataTable LoadByJudgmentID(int JudgmentID)
        {
            this.sqlDa.SelectCommand = sqlSelect;
            this.sqlSelect.Parameters.Clear();
            this.sqlSelect.CommandText = "[CostSelectByJudgmentID]";
            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("@JudgmentID", System.Data.SqlDbType.Int, 4, System.Data.ParameterDirection.Input, false, ((System.Byte)(10)), ((System.Byte)(0)), "", System.Data.DataRowVersion.Current, null));
            this.sqlSelect.Parameters["@JudgmentID"].Value = JudgmentID;

            CLAS.CostDataTable dt = new CLAS.CostDataTable();
            Fill(dt);
            return(dt);
        }