Ejemplo n.º 1
0
        public void deleteContract(ContractBO contract)
        {
            SqlParameter[] sqlParams;

            sqlParams = base.GetParameters("DeleteContrct_RateSched");

            RateScheduleDAL rateScheduleData = new RateScheduleDAL();

            for(int k=0; k<contract.rateScheduleCount(); k++)
            {
                sqlParams[fld_Contrct_RateSched_ContrctIDNum].Value = contract.ID;
                sqlParams[fld_Contrct_RateSched_RateSchedSeqNum].Value = ((RateScheduleStruct) contract.getRateScheduleAt(k)).ID;

                base.ExecuteDelete("DeleteContrct_RateSched", sqlParams);

                rateScheduleData.deleteRateSchedule(((RateScheduleStruct) contract.getRateScheduleAt(k)).ID);
            }

            sqlParams = base.GetParameters("DeleteContrctID");

              sqlParams[fld_ContrctIDNum].Value = contract.ID;

            base.ExecuteDelete("DeleteContrctID", sqlParams);
        }
Ejemplo n.º 2
0
        // ********************************* REMOVE RATE SCHEDULE
        private void removeRateSchedulePicBx_Click(object sender, System.EventArgs e)
        {
            RateScheduleDAL rateScheduleData = new RateScheduleDAL();

            rateScheduleData.deleteRateSchedule(rmsController.RateScheduleID);

            loadContractsTreeView();
        }