Exemplo n.º 1
0
        public void BindData(CLAS.HardshipDataTable a)
        {
            setBindingSources();

            a.ColumnChanged += new DataColumnChangeEventHandler(a_ColumnChanged);
            FM.GetCLASMng().GetHardship().OnUpdate += new atLogic.UpdateEventHandler(uc_OnUpdate);
        }
Exemplo n.º 2
0
        public CLAS.HardshipDataTable Load()
        {
            this.sqlDa.SelectCommand = sqlSelectAll;

            CLAS.HardshipDataTable dt = new CLAS.HardshipDataTable();
            Fill(dt);
            return(dt);
        }
Exemplo n.º 3
0
        public CLAS.HardshipDataTable LoadByFileId(int FileId)
        {
            this.sqlDa.SelectCommand = sqlSelect;
            this.sqlSelect.Parameters.Clear();
            this.sqlSelect.CommandText = "[HardshipSelectByFileId]";
            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("@FileId", System.Data.SqlDbType.Int, 4, System.Data.ParameterDirection.Input, false, ((System.Byte)(10)), ((System.Byte)(0)), "", System.Data.DataRowVersion.Current, null));
            this.sqlSelect.Parameters["@FileId"].Value = FileId;

            CLAS.HardshipDataTable dt = new CLAS.HardshipDataTable();
            Fill(dt);
            return(dt);
        }
Exemplo n.º 4
0
 internal HardshipBE(CLASManager pBEMng) : base(pBEMng, pBEMng.DB.Hardship)
 {
     myA          = pBEMng;
     myHardshipDT = (CLAS.HardshipDataTable)myDT;
 }