Esempio n. 1
0
        public CLAS.CBDetailDataTable Load()
        {
            this.sqlDa.SelectCommand = sqlSelectAll;

            CLAS.CBDetailDataTable dt = new CLAS.CBDetailDataTable();
            Fill(dt);
            return(dt);
        }
Esempio n. 2
0
        public CLAS.CBDetailDataTable LoadByOfficeID(int OfficeID)
        {
            this.sqlDa.SelectCommand = sqlSelect;
            this.sqlSelect.Parameters.Clear();
            this.sqlSelect.CommandText = "[CBDetailSelectByOfficeID]";
            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("@OfficeID", System.Data.SqlDbType.Int, 4, System.Data.ParameterDirection.Input, false, ((System.Byte)(10)), ((System.Byte)(0)), "", System.Data.DataRowVersion.Current, null));
            this.sqlSelect.Parameters["@OfficeID"].Value = OfficeID;

            CLAS.CBDetailDataTable dt = new CLAS.CBDetailDataTable();
            Fill(dt);
            return(dt);
        }
Esempio n. 3
0
        public CLAS.CBDetailDataTable LoadByCurrencyCode(string CurrencyCode)
        {
            this.sqlDa.SelectCommand = sqlSelect;
            this.sqlSelect.Parameters.Clear();
            this.sqlSelect.CommandText = "[CBDetailSelectByCurrencyCode]";
            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("@CurrencyCode", System.Data.SqlDbType.NVarChar, 2, System.Data.ParameterDirection.Input, false, ((System.Byte)(10)), ((System.Byte)(0)), "", System.Data.DataRowVersion.Current, null));
            this.sqlSelect.Parameters["@CurrencyCode"].Value = CurrencyCode;

            CLAS.CBDetailDataTable dt = new CLAS.CBDetailDataTable();
            Fill(dt);
            return(dt);
        }
Esempio n. 4
0
        internal CBDetailBE(CLASManager pBEMng)
            : base(pBEMng, pBEMng.DB.CBDetail)
        {
            myA          = pBEMng;
            myCBDetailDT = (CLAS.CBDetailDataTable)myDT;
            if (!myA.AtMng.AppMan.UseService && myODAL == null)
            {
                myODAL = myA.AtMng.DALMngr.GetCBDetail();
            }

            this.myCBDetailDT.ValuableAmountColumn.ExtendedProperties.Add("format", "C");
            this.myCBDetailDT.SINColumn.ExtendedProperties.Add("format", "### ### ###");
        }