Ejemplo n.º 1
0
        public CLAS.BankruptcyDataTable Load()
        {
            this.sqlDa.SelectCommand = sqlSelectAll;

            CLAS.BankruptcyDataTable dt = new CLAS.BankruptcyDataTable();
            Fill(dt);
            return(dt);
        }
Ejemplo n.º 2
0
        public void bindBankruptcyData(CLAS.BankruptcyDataTable dt)
        {
            officeIDucOfficeSelectBox.AtMng = FM.AtMng;
            setBindingSources();
            UIHelper.ComboBoxInit("BankruptcyOrderType", bankruptcyOrderTypeucMultiDropDown, FM);
            UIHelper.ComboBoxInit(FM.Codes("InsolvencyPeriod"), mccInsolvencyPeriod, FM);

            dt.ColumnChanged += new DataColumnChangeEventHandler(dt_ColumnChanged);
            FM.GetCLASMng().GetBankruptcy().OnUpdate += new atLogic.UpdateEventHandler(ucBankruptcy_OnUpdate);
        }
Ejemplo n.º 3
0
        public CLAS.BankruptcyDataTable LoadByOfficeID(int OfficeID)
        {
            this.sqlDa.SelectCommand = sqlSelect;
            this.sqlSelect.Parameters.Clear();
            this.sqlSelect.CommandText = "[BankruptcySelectByOfficeID]";
            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.BankruptcyDataTable dt = new CLAS.BankruptcyDataTable();
            Fill(dt);
            return(dt);
        }