private void InitalizeSequestrationValue(Sequestration Sequestration, int rowIndex) { int columnIndex = 1; InitalizeRangeInformation(rowIndex, columnIndex, Sequestration.HBSM); columnIndex++; InitalizeRangeInformation(rowIndex, columnIndex, Sequestration.CFJG); columnIndex++; InitalizeRangeInformation(rowIndex, columnIndex, DictionaryUtil.GetStringByKeyAndDic(Sequestration.CFLX, "查封类型类型")); columnIndex++; InitalizeRangeInformation(rowIndex, columnIndex, Sequestration.CFWJ); columnIndex++; InitalizeRangeInformation(rowIndex, columnIndex, Sequestration.CFWH); columnIndex++; InitalizeRangeInformation(rowIndex, columnIndex, Sequestration.JFWJ); columnIndex++; InitalizeRangeInformation(rowIndex, columnIndex, Sequestration.JFWH); columnIndex++; InitalizeRangeInformation(rowIndex, columnIndex, ToolDate.GetSlashDate(Sequestration.CFQSSJ)); columnIndex++; InitalizeRangeInformation(rowIndex, columnIndex, ToolDate.GetSlashDate(Sequestration.CFJSSJ)); columnIndex++; InitalizeRangeInformation(rowIndex, columnIndex, ToolDate.GetSlashDate(Sequestration.DJSJ)); columnIndex++; InitalizeRangeInformation(rowIndex, columnIndex, Sequestration.DBR); columnIndex++; InitalizeRangeInformation(rowIndex, columnIndex, Sequestration.LHCX); columnIndex++; InitalizeRangeInformation(rowIndex, columnIndex, ToolDate.GetSlashDate(Sequestration.CFSJ)); columnIndex++; InitalizeRangeInformation(rowIndex, columnIndex, Sequestration.FJ); }
private void DelBusiness() { try { switch (NavigatePath) { case ERealEstatePage.NaturalBuildingPage: NaturalBuilding naturalBuilding = Business.NaturalBuilding; NaturalBuildingDal naturalBuildingDal = new NaturalBuildingDal(); naturalBuildingDal.Del(naturalBuilding); break; case ERealEstatePage.LogicalBuildingPage: LogicalBuilding logicalBuilding = Business.LogicalBuilding; LogicalBuildingDal logicalBuildingDal = new LogicalBuildingDal(); logicalBuildingDal.Del(logicalBuilding); break; case ERealEstatePage.FloorPage: Floor floor = Business.Floor; FloorDal floorDal = new FloorDal(); floorDal.Del(floor); break; case ERealEstatePage.HouseholdPage: Household household = Business.Household; HouseholdDal householdDal = new HouseholdDal(); householdDal.Del(household); break; case ERealEstatePage.ObligeePage: Obligee obligee = Business.Obligee; ObligeeDal obligeeDal = new ObligeeDal(); obligeeDal.Del(obligee); break; case ERealEstatePage.MortgagePage: Mortgage mortgage = Business.Mortgage; MortgageDal mortgageDal = new MortgageDal(); mortgageDal.Del(mortgage); break; case ERealEstatePage.SequestrationPage: Sequestration sequestration = Business.Sequestration; SequestrationDal sequestrationDal = new SequestrationDal(); sequestrationDal.Del(sequestration); break; default: break; } BusinessNavCommand.Execute(NavigatePath); } catch (Exception ex) { ErrorDialogViewModel.getInstance().show(ex); return; } }
public override void InitialTable() { Sequestration = new Sequestration(); }