public HistoryHouseCounterAreasForm(House house, HouseCounter houseCounter)
 {
     this.m_House = house;
     this.m_houseCounter = houseCounter;
     this.InitializeComponent();
     this.historyHouseCounterAreasView1.Fill(this.m_House, this.m_houseCounter);
 }
 public void Fill(AIS.SN.Model.DomainObjects.House h, HouseCounter hc)
 {
     if (((h != AIS.SN.Model.DomainObjects.House.Null) && (h != null)) && (hc != null))
     {
         this.m_House = h;
         this.m_HouseCounter = hc;
         this.bsHouseCounterAreas.set_DataSource(HouseCounterArea.FindAllByHouseCounterId(this.m_HouseCounter.Id));
     }
 }
Ejemplo n.º 3
0
 public void Fill(long serviceId, long apartmentId)
 {
     if ((serviceId != ServiceOld.Null.Id) && (apartmentId != Apartment.Null.Id))
     {
         this.bsHouseServiceSeasons.set_DataSource(HouseServiceSeason.FindByServiceIdAndApartmentId(serviceId, apartmentId));
         this.m_House = House.Null;
         this.toolStrip.set_Visible(false);
     }
 }
Ejemplo n.º 4
0
 public void Fill(House h)
 {
     if ((h != House.Null) && (h != null))
     {
         this.m_House = h;
         this.bsHouseServiceSeasons.set_DataSource(HouseServiceSeason.FindByHouse(this.m_House));
         this.toolStrip.set_Visible(true);
     }
 }
Ejemplo n.º 5
0
 public void SetHouse(House house)
 {
     if ((house != null) && (house != House.Null))
     {
         this.isOneHouse = true;
         this.addressTreeView.set_Visible(false);
         this.UpdateHouse(house, house.GetLocalAddress());
     }
 }
Ejemplo n.º 6
0
 public void Fill(House hp)
 {
     this.m_HouseId = hp.Id;
     this.selectHvsType.SelectedFasetItem = hp.IsNullId((long) hp.HvsType) ? FasetItem.Null : hp.GetHvsType();
     this.selectGvsType.SelectedFasetItem = hp.IsNullId((long) hp.GvsType) ? FasetItem.Null : hp.GetGvsType();
     this.selectSewerType.SelectedFasetItem = hp.IsNullId((long) hp.SewerType) ? FasetItem.Null : hp.GetSewerType();
     this.selectStoveType.SelectedFasetItem = hp.IsNullId((long) hp.StoveType) ? FasetItem.Null : hp.GetStoveType();
     this.selectOverflowType.SelectedFasetItem = hp.IsNullId((long) hp.OverflowType) ? FasetItem.Null : hp.GetOverFlowType();
     this.selectHeatingType.SelectedFasetItem = hp.IsNullId((long) hp.HeatingType) ? FasetItem.Null : hp.GetHeatingType();
     this.selectUtilizationType.SelectedFasetItem = hp.IsNullId((long) hp.UtilizationType) ? FasetItem.Null : hp.GetUtilizationType();
     this.selectLocalBroadcastingType.SelectedFasetItem = hp.IsNullId((long) hp.LocalBroadcastingType) ? FasetItem.Null : hp.GetLocalBroadcastingType();
     this.selectTVEnquipmentType.SelectedFasetItem = hp.IsNullId((long) hp.Tvenquipmenttype) ? FasetItem.Null : hp.GetTvEnquipmentType();
     this.selectFireAlarmType.SelectedFasetItem = hp.IsNullId((long) hp.FireAlarmType) ? FasetItem.Null : hp.GetFireAlarmType();
 }
Ejemplo n.º 7
0
        public House GetHouseIngener(House house)
        {
            foreach (System.Windows.Forms.DataGridViewRow row in (System.Collections.IEnumerable) this.dgwHousePropertys.Rows)
            {
                switch (row.Cells.get_Item("propertyName").get_Value().ToString())
                {
                    case "Холодное водоснабжение":
                        house.HvsType = (int) ((int) row.Cells.get_Item("fasetItemId").get_Value());
                        break;

                    case "Горячее водоснабжение":
                        house.GvsType = (int) ((int) row.Cells.get_Item("fasetItemId").get_Value());
                        break;

                    case "Водоотведение":
                        house.OverflowType = (int) ((int) row.Cells.get_Item("fasetItemId").get_Value());
                        break;

                    case "Отопление":
                        house.HeatingType = (int) ((int) row.Cells.get_Item("fasetItemId").get_Value());
                        break;

                    case "Тип плиты":
                        house.StoveType = (int) ((int) row.Cells.get_Item("fasetItemId").get_Value());
                        break;

                    case "Утилизация ТБО":
                        house.UtilizationType = (int) ((int) row.Cells.get_Item("fasetItemId").get_Value());
                        break;

                    case "Местное радиовещание":
                        house.LocalBroadcastingType = (int) ((int) row.Cells.get_Item("fasetItemId").get_Value());
                        break;

                    case "Телевизиционное оборудование":
                        house.Tvenquipmenttype = (int) ((int) row.Cells.get_Item("fasetItemId").get_Value());
                        break;

                    case "Пожарная сигнализация":
                        house.FireAlarmType = (int) ((int) row.Cells.get_Item("fasetItemId").get_Value());
                        break;

                    case "Канализация":
                        house.SewerType = (int) ((int) row.Cells.get_Item("fasetItemId").get_Value());
                        break;
                }
            }
            return house;
        }
Ejemplo n.º 8
0
 public House GetHouseIngener(House hp)
 {
     hp.Id = this.m_HouseId;
     hp.HvsType = this.selectHvsType.SelectedFasetItem.Id;
     hp.GvsType = this.selectGvsType.SelectedFasetItem.Id;
     hp.SewerType = this.selectSewerType.SelectedFasetItem.Id;
     hp.StoveType = this.selectStoveType.SelectedFasetItem.Id;
     hp.OverflowType = this.selectOverflowType.SelectedFasetItem.Id;
     hp.HeatingType = this.selectHeatingType.SelectedFasetItem.Id;
     hp.UtilizationType = this.selectUtilizationType.SelectedFasetItem.Id;
     hp.LocalBroadcastingType = this.selectLocalBroadcastingType.SelectedFasetItem.Id;
     hp.Tvenquipmenttype = this.selectTVEnquipmentType.SelectedFasetItem.Id;
     hp.FireAlarmType = this.selectFireAlarmType.SelectedFasetItem.Id;
     return hp;
 }
 public void Fill(House house)
 {
     this.set_Font(Manager.WindowFont);
     if (this.m_House != house)
     {
         this.Clear();
         this.m_House = house;
         if (this.m_House != House.Null)
         {
             this.bsNonresidentialApartments.SuspendBinding();
             this.bsNonresidentialApartments.set_DataSource(this.m_House.GetNonresidentialApartments());
             this.bsNonresidentialApartments.ResumeBinding();
         }
     }
 }
 public AddChangeHouseHouseHolderForm(HouseHouseHolder HouseHouseHolder)
 {
     this.m_House = House.Null;
     this.InitializeComponent();
     if (HouseHouseHolder != HouseHouseHolder.Null)
     {
         this.set_Text("Редактирование управляющей компании дома");
         this.btnApply.set_Text("Принять");
         this.m_House = House.FindById(HouseHouseHolder.HouseId);
     }
     else
     {
         this.set_Text("Создание управляющей компании дома");
         this.btnApply.set_Text("Создать");
     }
     this.m_HouseHouseHolder = HouseHouseHolder;
 }
 public AddChangeHouseResourceProviderForm(HouseResourceProvider HouseResourceProvider)
 {
     this.m_House = House.Null;
     this.InitializeComponent();
     if (HouseResourceProvider != HouseResourceProvider.Null)
     {
         this.set_Text("Редактирование ресурсоснабжающей организации дома");
         this.btnApply.set_Text("Принять");
         this.m_House = House.FindById(HouseResourceProvider.HouseId);
     }
     else
     {
         this.set_Text("Создание ресурсоснабжающей организации дома");
         this.btnApply.set_Text("Создать");
     }
     this.m_HouseResourceProvider = HouseResourceProvider;
 }
 public AddChangeHouseServiceProviderForm(HouseServiceProvider houseServiceProvider)
 {
     this.m_House = House.Null;
     this.InitializeComponent();
     if (houseServiceProvider != HouseServiceProvider.Null)
     {
         this.set_Text("Редактирование поставщика услуг дома");
         this.btnApply.set_Text("Принять");
         this.m_House = House.FindById(houseServiceProvider.HouseId);
     }
     else
     {
         this.set_Text("Создание поставщика услуг дома");
         this.btnApply.set_Text("Создать");
     }
     this.m_HouseServiceProvider = houseServiceProvider;
 }
Ejemplo n.º 13
0
 private void tabControl1_Selected(object sender, System.Windows.Forms.TabControlEventArgs e)
 {
     if (this.tab.get_SelectedIndex() < 2)
     {
         bool flag;
         this.btnSave2.set_Visible(flag = (bool) ((((this.housePassportView.get_Visible() || this.houseCountersView.get_Visible()) || (this.houseServiceSeasonsView.get_Visible() || this.nonresidentialApartmentsView.get_Visible())) || ((this.houseTreatyCommitmentView.get_Visible() || this.houseIngenerTableView.get_Visible()) || this.houseOrganizationsView.get_Visible())) || this.historyHouseAreasView1.get_Visible()));
         this.btnSave.set_Visible(flag);
     }
     else
     {
         if (!this.isOneHouse)
         {
             this.m_House = this.addressTreeView.SelectedAddress.GetHouse();
         }
         this.btnSave.set_Visible(false);
         this.btnSave2.set_Visible(false);
     }
 }
Ejemplo n.º 14
0
 private void InitializeComponent()
 {
     House house = new House();
     this.historyHouseAreasView1 = new HistoryHouseAreasView();
     base.SuspendLayout();
     this.historyHouseAreasView1.set_Dock(System.Windows.Forms.DockStyle.Fill);
     house.AdrId = 0L;
     house.AdrName = null;
     int[] numArray = new int[4];
     house.AnotherSquare = new decimal(numArray);
     house.BoroughId = 0;
     house.BoroughName = null;
     house.CanonicalTypeId = 0;
     house.CanonicalTypeName = null;
     house.CargoLift = 0;
     house.Created = new System.DateTime(0L);
     house.DomKom = false;
     house.DomKomTarif = 0.0;
     house.Entrance = 0;
     house.ExternalKey = 0L;
     house.FireAlarmType = 0;
     house.FireAlarmTypeName = null;
     int[] numArray2 = new int[4];
     house.FiredArea = new decimal(numArray2);
     house.FiveRoom = 0;
     house.Flat = 0;
     house.FlatWithGarbageChute = 0;
     house.Floor = 0;
     int[] numArray3 = new int[4];
     house.FloorArea = new decimal(numArray3);
     house.FormControl = 0;
     house.FormControlTypeName = null;
     house.FoundationType = 0;
     house.FoundationTypeName = null;
     house.FourRoom = 0;
     house.GvsType = 0;
     house.GvsTypeName = null;
     house.HeatingType = 0;
     house.HeatingTypeName = null;
     house.HouseChief = null;
     house.HvsType = 0;
     house.HvsTypeName = null;
     house.Id = 0L;
     house.IsDeleted = false;
     house.IsDirty = true;
     house.KapRemontYear = 0;
     int[] numArray4 = new int[4];
     house.KitchensSquare = new decimal(numArray4);
     house.Lift = 0;
     int[] numArray5 = new int[4];
     house.LivingSquare = new decimal(numArray5);
     house.LocalBroadcastingType = 0;
     house.LocalBroadcastingTypeName = null;
     house.MusorCount = 0;
     house.ObjectWithIdType = null;
     house.OnDate = new System.DateTime(0L);
     house.OneRoom = 0;
     house.OverflowType = 0;
     house.OverFlowTypeName = null;
     house.OverlapType = 0;
     house.OverlapTypeName = null;
     house.OwnershipType = 0;
     house.OwnerShipTypeName = null;
     house.PassLift = 0;
     house.PassportNum = 0;
     house.PercentWear = 0;
     house.PrintServices = 0;
     house.RaionSud = null;
     house.RoofType = 0;
     house.RoofTypeName = null;
     house.Series = 0;
     house.SewerType = 0;
     house.SewerTypeName = null;
     house.StoveType = 0;
     house.StoveTypeName = null;
     house.SubProvider = null;
     house.Sud = 0;
     house.SudUc = null;
     house.TerritorialManagement = 0;
     house.TerritorialManagementName = null;
     house.ThreeRoom = 0;
     int[] numArray6 = new int[4];
     house.ToiletsSquare = new decimal(numArray6);
     int[] numArray7 = new int[4];
     house.TotalArea = new decimal(numArray7);
     int[] numArray8 = new int[4];
     house.TotalAreaLivingNonLivingMkd = new decimal(numArray8);
     int[] numArray9 = new int[4];
     house.TotalAreaMkd = new decimal(numArray9);
     int[] numArray10 = new int[4];
     house.TotalAreaOi = new decimal(numArray10);
     int[] numArray11 = new int[4];
     house.TotalStructureVolume = new decimal(numArray11);
     house.Tvenquipmenttype = 0;
     house.Tvenquipmenttypename = null;
     house.TwoRoom = 0;
     house.Type = 0;
     house.TypeName = null;
     house.UtilizationType = 0;
     house.UtilizationTypeName = null;
     house.WallType = 0;
     house.WallTypeName = null;
     house.YearBegin = 0;
     house.YearPassport = 0;
     this.historyHouseAreasView1.House = house;
     this.historyHouseAreasView1.set_Location(new System.Drawing.Point(0, 0));
     this.historyHouseAreasView1.set_Name("historyHouseAreasView1");
     this.historyHouseAreasView1.set_Size(new System.Drawing.Size(0x43c, 0x14f));
     this.historyHouseAreasView1.set_TabIndex(0);
     this.historyHouseAreasView1.add_Load(new System.EventHandler(this.historyHouseAreasView1_Load));
     base.set_AutoScaleDimensions(new System.Drawing.SizeF(6f, 13f));
     base.set_AutoScaleMode(System.Windows.Forms.AutoScaleMode.Font);
     base.set_ClientSize(new System.Drawing.Size(0x43c, 0x14f));
     base.Controls.Add(this.historyHouseAreasView1);
     base.set_Name("HistoryHouseAreasForm");
     base.set_StartPosition(System.Windows.Forms.FormStartPosition.CenterParent);
     this.set_Text("Площадь дома");
     base.ResumeLayout(false);
 }
Ejemplo n.º 15
0
 private void InitializeComponent()
 {
     House house = new House();
     this.tabPasportHouse = new System.Windows.Forms.TabPage();
     this.btnSave = new System.Windows.Forms.Button();
     this.housePassportView = new HouseInfoView();
     this.tabEquipments = new System.Windows.Forms.TabPage();
     this.btnSave2 = new System.Windows.Forms.Button();
     this.houseIngenerTableView = new HouseIngenerTableView();
     this.tsApartmentNumberAddress = new System.Windows.Forms.ToolStrip();
     this.tslAddress = new System.Windows.Forms.ToolStripLabel();
     this.tstbApartmentAddress = new System.Windows.Forms.ToolStripTextBox();
     this.tabPageCollectionCounters = new System.Windows.Forms.TabPage();
     this.houseCountersView = new HouseCountersView();
     this.tabSesonals = new System.Windows.Forms.TabPage();
     this.houseServiceSeasonsView = new HouseServiceSeasonsView();
     this.tabPageNonresidentialApartments = new System.Windows.Forms.TabPage();
     this.nonresidentialApartmentsView = new NonresidentialApartmentsView();
     this.tabPageOrganizatios = new System.Windows.Forms.TabPage();
     this.houseOrganizationsView = new HouseOrganizationsView();
     this.tab = new System.Windows.Forms.TabControl();
     this.tabHouseAreas = new System.Windows.Forms.TabPage();
     this.historyHouseAreasView1 = new HistoryHouseAreasView();
     this.tabPageHouseTreatyCommitment = new System.Windows.Forms.TabPage();
     this.houseTreatyCommitmentView = new HouseTreatyCommitmentView();
     this.tabPageHouseServiceNorms = new System.Windows.Forms.TabPage();
     this.houseServiceNormsView = new HouseServiceNormsView();
     this.tabPageHouseServiceTariffs = new System.Windows.Forms.TabPage();
     this.houseServiceTariffsView = new HouseServiceTariffsView();
     this.tabPageHouseBindingServices = new System.Windows.Forms.TabPage();
     this.housesBindingServicesView = new HousesBindingServicesView();
     this.panel1 = new System.Windows.Forms.Panel();
     this.splitter1 = new System.Windows.Forms.Splitter();
     this.addressTreeView = new HouseTree();
     this.dataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.dataGridViewTextBoxColumn6 = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.dataGridViewTextBoxColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.dataGridViewTextBoxColumn5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.dataGridViewTextBoxColumn4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.dataGridViewTextBoxColumn3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.dataGridViewTextBoxColumn7 = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.tabPasportHouse.SuspendLayout();
     this.tabEquipments.SuspendLayout();
     this.tsApartmentNumberAddress.SuspendLayout();
     this.tabPageCollectionCounters.SuspendLayout();
     this.tabSesonals.SuspendLayout();
     this.tabPageNonresidentialApartments.SuspendLayout();
     this.tabPageOrganizatios.SuspendLayout();
     this.tab.SuspendLayout();
     this.tabHouseAreas.SuspendLayout();
     this.tabPageHouseTreatyCommitment.SuspendLayout();
     this.tabPageHouseServiceNorms.SuspendLayout();
     this.tabPageHouseServiceTariffs.SuspendLayout();
     this.tabPageHouseBindingServices.SuspendLayout();
     this.panel1.SuspendLayout();
     base.SuspendLayout();
     this.tabPasportHouse.Controls.Add(this.btnSave);
     this.tabPasportHouse.Controls.Add(this.housePassportView);
     this.tabPasportHouse.set_Location(new System.Drawing.Point(4, 0x16));
     this.tabPasportHouse.set_Margin(new System.Windows.Forms.Padding(2));
     this.tabPasportHouse.set_Name("tabPasportHouse");
     this.tabPasportHouse.set_Padding(new System.Windows.Forms.Padding(2));
     this.tabPasportHouse.set_Size(new System.Drawing.Size(0x2f4, 610));
     this.tabPasportHouse.set_TabIndex(0);
     this.tabPasportHouse.set_Text("Паспортные данные");
     this.tabPasportHouse.set_UseVisualStyleBackColor(true);
     this.btnSave.set_Anchor(System.Windows.Forms.AnchorStyles.Right | System.Windows.Forms.AnchorStyles.Bottom);
     this.btnSave.set_Location(new System.Drawing.Point(0x293, 0x239));
     this.btnSave.set_Margin(new System.Windows.Forms.Padding(2));
     this.btnSave.set_Name("btnSave");
     this.btnSave.set_Size(new System.Drawing.Size(80, 0x19));
     this.btnSave.set_TabIndex(6);
     this.btnSave.set_Text("Сохранить");
     this.btnSave.set_UseVisualStyleBackColor(true);
     this.btnSave.set_Visible(false);
     this.btnSave.add_Click(new System.EventHandler(this.btnSave_Click));
     this.housePassportView.set_Dock(System.Windows.Forms.DockStyle.Fill);
     this.housePassportView.set_Location(new System.Drawing.Point(2, 2));
     this.housePassportView.set_Name("housePassportView");
     this.housePassportView.set_Size(new System.Drawing.Size(0x2f0, 0x25e));
     this.housePassportView.set_TabIndex(2);
     this.tabEquipments.Controls.Add(this.btnSave2);
     this.tabEquipments.Controls.Add(this.houseIngenerTableView);
     this.tabEquipments.set_Location(new System.Drawing.Point(4, 0x16));
     this.tabEquipments.set_Margin(new System.Windows.Forms.Padding(2));
     this.tabEquipments.set_Name("tabEquipments");
     this.tabEquipments.set_Padding(new System.Windows.Forms.Padding(2));
     this.tabEquipments.set_Size(new System.Drawing.Size(0x2f4, 610));
     this.tabEquipments.set_TabIndex(1);
     this.tabEquipments.set_Text("Инженерное оборудование");
     this.tabEquipments.set_UseVisualStyleBackColor(true);
     this.btnSave2.set_Anchor(System.Windows.Forms.AnchorStyles.Right | System.Windows.Forms.AnchorStyles.Bottom);
     this.btnSave2.set_Location(new System.Drawing.Point(0x293, 0x239));
     this.btnSave2.set_Margin(new System.Windows.Forms.Padding(2));
     this.btnSave2.set_Name("btnSave2");
     this.btnSave2.set_Size(new System.Drawing.Size(80, 0x19));
     this.btnSave2.set_TabIndex(7);
     this.btnSave2.set_Text("Сохранить");
     this.btnSave2.set_UseVisualStyleBackColor(true);
     this.btnSave2.set_Visible(false);
     this.btnSave2.add_Click(new System.EventHandler(this.btnSave_Click));
     this.houseIngenerTableView.set_Dock(System.Windows.Forms.DockStyle.Fill);
     this.houseIngenerTableView.set_Location(new System.Drawing.Point(2, 2));
     this.houseIngenerTableView.set_Name("houseIngenerTableView");
     this.houseIngenerTableView.set_Size(new System.Drawing.Size(0x2f0, 0x25e));
     this.houseIngenerTableView.set_TabIndex(0);
     this.tsApartmentNumberAddress.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.tslAddress, this.tstbApartmentAddress });
     this.tsApartmentNumberAddress.set_Location(new System.Drawing.Point(0, 0));
     this.tsApartmentNumberAddress.set_Name("tsApartmentNumberAddress");
     this.tsApartmentNumberAddress.set_Size(new System.Drawing.Size(0x2fc, 0x19));
     this.tsApartmentNumberAddress.set_TabIndex(6);
     this.tsApartmentNumberAddress.set_Text("toolStrip1");
     this.tslAddress.set_Font(new System.Drawing.Font("Tahoma", 9.75f, System.Drawing.FontStyle.Bold));
     this.tslAddress.set_Name("tslAddress");
     this.tslAddress.set_Size(new System.Drawing.Size(0x38, 0x16));
     this.tslAddress.set_Text("АДРЕС:");
     this.tstbApartmentAddress.set_Font(new System.Drawing.Font("Tahoma", 8.25f, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, 0xcc));
     this.tstbApartmentAddress.set_Name("tstbApartmentAddress");
     this.tstbApartmentAddress.set_ReadOnly(true);
     this.tstbApartmentAddress.set_Size(new System.Drawing.Size(300, 0x19));
     this.tabPageCollectionCounters.Controls.Add(this.houseCountersView);
     this.tabPageCollectionCounters.set_Location(new System.Drawing.Point(4, 0x16));
     this.tabPageCollectionCounters.set_Margin(new System.Windows.Forms.Padding(2));
     this.tabPageCollectionCounters.set_Name("tabPageCollectionCounters");
     this.tabPageCollectionCounters.set_Padding(new System.Windows.Forms.Padding(2));
     this.tabPageCollectionCounters.set_Size(new System.Drawing.Size(0x2f4, 610));
     this.tabPageCollectionCounters.set_TabIndex(2);
     this.tabPageCollectionCounters.set_Text("Коллективные приборы учета");
     this.tabPageCollectionCounters.set_UseVisualStyleBackColor(true);
     this.houseCountersView.set_Dock(System.Windows.Forms.DockStyle.Fill);
     this.houseCountersView.set_Location(new System.Drawing.Point(2, 2));
     this.houseCountersView.set_Name("houseCountersView");
     this.houseCountersView.set_Size(new System.Drawing.Size(0x2f0, 0x25e));
     this.houseCountersView.set_TabIndex(0);
     this.tabSesonals.Controls.Add(this.houseServiceSeasonsView);
     this.tabSesonals.set_Location(new System.Drawing.Point(4, 0x16));
     this.tabSesonals.set_Name("tabSesonals");
     this.tabSesonals.set_Padding(new System.Windows.Forms.Padding(3));
     this.tabSesonals.set_Size(new System.Drawing.Size(0x2f4, 610));
     this.tabSesonals.set_TabIndex(3);
     this.tabSesonals.set_Text("Сезоны включения услуг");
     this.tabSesonals.set_UseVisualStyleBackColor(true);
     this.houseServiceSeasonsView.set_Dock(System.Windows.Forms.DockStyle.Fill);
     this.houseServiceSeasonsView.set_Font(new System.Drawing.Font("Tahoma", 9.75f));
     this.houseServiceSeasonsView.set_Location(new System.Drawing.Point(3, 3));
     this.houseServiceSeasonsView.set_Margin(new System.Windows.Forms.Padding(3, 4, 3, 4));
     this.houseServiceSeasonsView.set_Name("houseServiceSeasonsView");
     this.houseServiceSeasonsView.set_Size(new System.Drawing.Size(750, 0x25c));
     this.houseServiceSeasonsView.set_TabIndex(0);
     this.tabPageNonresidentialApartments.Controls.Add(this.nonresidentialApartmentsView);
     this.tabPageNonresidentialApartments.set_Location(new System.Drawing.Point(4, 0x16));
     this.tabPageNonresidentialApartments.set_Name("tabPageNonresidentialApartments");
     this.tabPageNonresidentialApartments.set_Size(new System.Drawing.Size(0x2f4, 610));
     this.tabPageNonresidentialApartments.set_TabIndex(4);
     this.tabPageNonresidentialApartments.set_Text("Нежилые помещения");
     this.tabPageNonresidentialApartments.set_UseVisualStyleBackColor(true);
     this.nonresidentialApartmentsView.set_Dock(System.Windows.Forms.DockStyle.Fill);
     this.nonresidentialApartmentsView.set_Location(new System.Drawing.Point(0, 0));
     this.nonresidentialApartmentsView.set_Name("nonresidentialApartmentsView");
     this.nonresidentialApartmentsView.set_Size(new System.Drawing.Size(0x2f4, 610));
     this.nonresidentialApartmentsView.set_TabIndex(0);
     this.tabPageOrganizatios.set_BackColor(System.Drawing.Color.Transparent);
     this.tabPageOrganizatios.Controls.Add(this.houseOrganizationsView);
     this.tabPageOrganizatios.set_Location(new System.Drawing.Point(4, 0x16));
     this.tabPageOrganizatios.set_Name("tabPageOrganizatios");
     this.tabPageOrganizatios.set_Padding(new System.Windows.Forms.Padding(3));
     this.tabPageOrganizatios.set_Size(new System.Drawing.Size(0x2f4, 610));
     this.tabPageOrganizatios.set_TabIndex(6);
     this.tabPageOrganizatios.set_Text("Обслуживание");
     this.houseOrganizationsView.set_Dock(System.Windows.Forms.DockStyle.Fill);
     this.houseOrganizationsView.set_Location(new System.Drawing.Point(3, 3));
     this.houseOrganizationsView.set_Name("houseOrganizationsView");
     this.houseOrganizationsView.set_Size(new System.Drawing.Size(750, 0x25c));
     this.houseOrganizationsView.set_TabIndex(0);
     this.tab.Controls.Add(this.tabPasportHouse);
     this.tab.Controls.Add(this.tabHouseAreas);
     this.tab.Controls.Add(this.tabEquipments);
     this.tab.Controls.Add(this.tabPageCollectionCounters);
     this.tab.Controls.Add(this.tabSesonals);
     this.tab.Controls.Add(this.tabPageNonresidentialApartments);
     this.tab.Controls.Add(this.tabPageHouseTreatyCommitment);
     this.tab.Controls.Add(this.tabPageOrganizatios);
     this.tab.Controls.Add(this.tabPageHouseServiceNorms);
     this.tab.Controls.Add(this.tabPageHouseServiceTariffs);
     this.tab.Controls.Add(this.tabPageHouseBindingServices);
     this.tab.set_Dock(System.Windows.Forms.DockStyle.Fill);
     this.tab.set_Location(new System.Drawing.Point(0, 0x19));
     this.tab.set_Margin(new System.Windows.Forms.Padding(2));
     this.tab.set_Name("tab");
     this.tab.set_SelectedIndex(0);
     this.tab.set_Size(new System.Drawing.Size(0x2fc, 0x27c));
     this.tab.set_TabIndex(4);
     this.tab.add_SelectedIndexChanged(new System.EventHandler(this.tab_SelectedIndexChanged));
     this.tab.add_Selected(new System.Windows.Forms.TabControlEventHandler(this.tabControl1_Selected));
     this.tabHouseAreas.Controls.Add(this.historyHouseAreasView1);
     this.tabHouseAreas.set_Location(new System.Drawing.Point(4, 0x16));
     this.tabHouseAreas.set_Name("tabHouseAreas");
     this.tabHouseAreas.set_Padding(new System.Windows.Forms.Padding(3));
     this.tabHouseAreas.set_Size(new System.Drawing.Size(0x2f4, 610));
     this.tabHouseAreas.set_TabIndex(9);
     this.tabHouseAreas.set_Text("Площадь дома");
     this.tabHouseAreas.set_UseVisualStyleBackColor(true);
     this.historyHouseAreasView1.set_Dock(System.Windows.Forms.DockStyle.Fill);
     house.AdrId = 0L;
     house.AdrName = null;
     int[] numArray = new int[4];
     house.AnotherSquare = new decimal(numArray);
     house.BoroughId = 0;
     house.BoroughName = null;
     house.CanonicalTypeId = 0;
     house.CanonicalTypeName = null;
     house.CargoLift = 0;
     house.Created = new System.DateTime(0L);
     house.DomKom = false;
     house.DomKomTarif = 0.0;
     house.Entrance = 0;
     house.ExternalKey = 0L;
     house.FireAlarmType = 0;
     house.FireAlarmTypeName = null;
     int[] numArray2 = new int[4];
     house.FiredArea = new decimal(numArray2);
     house.FiveRoom = 0;
     house.Flat = 0;
     house.FlatWithGarbageChute = 0;
     house.Floor = 0;
     int[] numArray3 = new int[4];
     house.FloorArea = new decimal(numArray3);
     house.FormControl = 0;
     house.FormControlTypeName = null;
     house.FoundationType = 0;
     house.FoundationTypeName = null;
     house.FourRoom = 0;
     house.GvsType = 0;
     house.GvsTypeName = null;
     house.HeatingType = 0;
     house.HeatingTypeName = null;
     house.HouseChief = null;
     house.HvsType = 0;
     house.HvsTypeName = null;
     house.Id = 0L;
     house.IsDeleted = false;
     house.IsDirty = true;
     house.KapRemontYear = 0;
     int[] numArray4 = new int[4];
     house.KitchensSquare = new decimal(numArray4);
     house.Lift = 0;
     int[] numArray5 = new int[4];
     house.LivingSquare = new decimal(numArray5);
     house.LocalBroadcastingType = 0;
     house.LocalBroadcastingTypeName = null;
     house.MusorCount = 0;
     house.ObjectWithIdType = null;
     house.OnDate = new System.DateTime(0L);
     house.OneRoom = 0;
     house.OverflowType = 0;
     house.OverFlowTypeName = null;
     house.OverlapType = 0;
     house.OverlapTypeName = null;
     house.OwnershipType = 0;
     house.OwnerShipTypeName = null;
     house.PassLift = 0;
     house.PassportNum = 0;
     house.PercentWear = 0;
     house.PrintServices = 1;
     house.RaionSud = null;
     house.RoofType = 0;
     house.RoofTypeName = null;
     house.Series = 0;
     house.SewerType = 0;
     house.SewerTypeName = null;
     house.StoveType = 0;
     house.StoveTypeName = null;
     house.SubProvider = null;
     house.Sud = 0;
     house.SudUc = null;
     house.TerritorialManagement = 0;
     house.TerritorialManagementName = null;
     house.ThreeRoom = 0;
     int[] numArray6 = new int[4];
     house.ToiletsSquare = new decimal(numArray6);
     int[] numArray7 = new int[4];
     house.TotalArea = new decimal(numArray7);
     int[] numArray8 = new int[4];
     house.TotalAreaLivingNonLivingMkd = new decimal(numArray8);
     int[] numArray9 = new int[4];
     house.TotalAreaMkd = new decimal(numArray9);
     int[] numArray10 = new int[4];
     house.TotalAreaOi = new decimal(numArray10);
     int[] numArray11 = new int[4];
     house.TotalStructureVolume = new decimal(numArray11);
     house.Tvenquipmenttype = 0;
     house.Tvenquipmenttypename = null;
     house.TwoRoom = 0;
     house.Type = 0;
     house.TypeName = null;
     house.UtilizationType = 0;
     house.UtilizationTypeName = null;
     house.WallType = 0;
     house.WallTypeName = null;
     house.YearBegin = 0;
     house.YearPassport = 0;
     this.historyHouseAreasView1.House = house;
     this.historyHouseAreasView1.set_Location(new System.Drawing.Point(3, 3));
     this.historyHouseAreasView1.set_Name("historyHouseAreasView1");
     this.historyHouseAreasView1.set_Size(new System.Drawing.Size(750, 0x25c));
     this.historyHouseAreasView1.set_TabIndex(0);
     this.tabPageHouseTreatyCommitment.Controls.Add(this.houseTreatyCommitmentView);
     this.tabPageHouseTreatyCommitment.set_Location(new System.Drawing.Point(4, 0x16));
     this.tabPageHouseTreatyCommitment.set_Name("tabPageHouseTreatyCommitment");
     this.tabPageHouseTreatyCommitment.set_Padding(new System.Windows.Forms.Padding(3));
     this.tabPageHouseTreatyCommitment.set_Size(new System.Drawing.Size(0x2f4, 610));
     this.tabPageHouseTreatyCommitment.set_TabIndex(5);
     this.tabPageHouseTreatyCommitment.set_Text("Договорные обязательства");
     this.tabPageHouseTreatyCommitment.set_UseVisualStyleBackColor(true);
     this.houseTreatyCommitmentView.set_Dock(System.Windows.Forms.DockStyle.Fill);
     this.houseTreatyCommitmentView.set_Font(new System.Drawing.Font("Tahoma", 9.75f));
     this.houseTreatyCommitmentView.set_Location(new System.Drawing.Point(3, 3));
     this.houseTreatyCommitmentView.set_Margin(new System.Windows.Forms.Padding(3, 4, 3, 4));
     this.houseTreatyCommitmentView.set_Name("houseTreatyCommitmentView");
     this.houseTreatyCommitmentView.set_Size(new System.Drawing.Size(750, 0x25c));
     this.houseTreatyCommitmentView.set_TabIndex(0);
     this.tabPageHouseServiceNorms.Controls.Add(this.houseServiceNormsView);
     this.tabPageHouseServiceNorms.set_Location(new System.Drawing.Point(4, 0x16));
     this.tabPageHouseServiceNorms.set_Name("tabPageHouseServiceNorms");
     this.tabPageHouseServiceNorms.set_Size(new System.Drawing.Size(0x2f4, 610));
     this.tabPageHouseServiceNorms.set_TabIndex(7);
     this.tabPageHouseServiceNorms.set_Text("Нормативы");
     this.tabPageHouseServiceNorms.set_UseVisualStyleBackColor(true);
     this.houseServiceNormsView.set_Dock(System.Windows.Forms.DockStyle.Fill);
     this.houseServiceNormsView.set_Location(new System.Drawing.Point(0, 0));
     this.houseServiceNormsView.set_Name("houseServiceNormsView");
     this.houseServiceNormsView.set_Size(new System.Drawing.Size(0x2f4, 610));
     this.houseServiceNormsView.set_TabIndex(0);
     this.tabPageHouseServiceTariffs.Controls.Add(this.houseServiceTariffsView);
     this.tabPageHouseServiceTariffs.set_Location(new System.Drawing.Point(4, 0x16));
     this.tabPageHouseServiceTariffs.set_Name("tabPageHouseServiceTariffs");
     this.tabPageHouseServiceTariffs.set_Padding(new System.Windows.Forms.Padding(3));
     this.tabPageHouseServiceTariffs.set_Size(new System.Drawing.Size(0x2f4, 610));
     this.tabPageHouseServiceTariffs.set_TabIndex(8);
     this.tabPageHouseServiceTariffs.set_Text("Тарифы");
     this.tabPageHouseServiceTariffs.set_UseVisualStyleBackColor(true);
     this.houseServiceTariffsView.set_Dock(System.Windows.Forms.DockStyle.Fill);
     this.houseServiceTariffsView.set_Font(new System.Drawing.Font("Tahoma", 9.75f));
     this.houseServiceTariffsView.House = null;
     this.houseServiceTariffsView.set_Location(new System.Drawing.Point(3, 3));
     this.houseServiceTariffsView.set_Margin(new System.Windows.Forms.Padding(3, 4, 3, 4));
     this.houseServiceTariffsView.set_Name("houseServiceTariffsView");
     this.houseServiceTariffsView.set_Size(new System.Drawing.Size(750, 0x25c));
     this.houseServiceTariffsView.set_TabIndex(0);
     this.tabPageHouseBindingServices.Controls.Add(this.housesBindingServicesView);
     this.tabPageHouseBindingServices.set_Location(new System.Drawing.Point(4, 0x16));
     this.tabPageHouseBindingServices.set_Name("tabPageHouseBindingServices");
     this.tabPageHouseBindingServices.set_Padding(new System.Windows.Forms.Padding(3));
     this.tabPageHouseBindingServices.set_Size(new System.Drawing.Size(0x2f4, 610));
     this.tabPageHouseBindingServices.set_TabIndex(10);
     this.tabPageHouseBindingServices.set_Text("Привязка услуги к ИПУ");
     this.tabPageHouseBindingServices.set_UseVisualStyleBackColor(true);
     this.housesBindingServicesView.set_Dock(System.Windows.Forms.DockStyle.Fill);
     this.housesBindingServicesView.set_Location(new System.Drawing.Point(3, 3));
     this.housesBindingServicesView.set_Name("housesBindingServicesView");
     this.housesBindingServicesView.set_Size(new System.Drawing.Size(750, 0x25c));
     this.housesBindingServicesView.set_TabIndex(0);
     this.panel1.Controls.Add(this.tab);
     this.panel1.Controls.Add(this.tsApartmentNumberAddress);
     this.panel1.set_Dock(System.Windows.Forms.DockStyle.Fill);
     this.panel1.set_Location(new System.Drawing.Point(0xdd, 0));
     this.panel1.set_Name("panel1");
     this.panel1.set_Size(new System.Drawing.Size(0x2fc, 0x295));
     this.panel1.set_TabIndex(12);
     this.splitter1.set_Location(new System.Drawing.Point(0xda, 0));
     this.splitter1.set_Name("splitter1");
     this.splitter1.set_Size(new System.Drawing.Size(3, 0x295));
     this.splitter1.set_TabIndex(10);
     this.splitter1.set_TabStop(false);
     this.addressTreeView.DenyEditing = false;
     this.addressTreeView.set_Dock(System.Windows.Forms.DockStyle.Left);
     this.addressTreeView.set_HideSelection(false);
     this.addressTreeView.set_Location(new System.Drawing.Point(0, 0));
     this.addressTreeView.set_Name("addressTreeView");
     this.addressTreeView.SelectedAddress = null;
     this.addressTreeView.set_ShowNodeToolTips(true);
     this.addressTreeView.set_Size(new System.Drawing.Size(0xda, 0x295));
     this.addressTreeView.set_TabIndex(11);
     this.addressTreeView.add_BeforeExpand(new System.Windows.Forms.TreeViewCancelEventHandler(this.addressTreeView_BeforeExpand));
     this.addressTreeView.add_AfterSelect(new System.Windows.Forms.TreeViewEventHandler(this.addressTreeView_AfterSelect));
     this.dataGridViewTextBoxColumn1.set_DataPropertyName("ServiceProviderCode");
     this.dataGridViewTextBoxColumn1.set_HeaderText("Код ПУ");
     this.dataGridViewTextBoxColumn1.set_Name("dataGridViewTextBoxColumn1");
     this.dataGridViewTextBoxColumn1.set_Width(0x33);
     this.dataGridViewTextBoxColumn6.set_DataPropertyName("ToDate");
     this.dataGridViewTextBoxColumn6.set_HeaderText("Дата окончания");
     this.dataGridViewTextBoxColumn6.set_Name("dataGridViewTextBoxColumn6");
     this.dataGridViewTextBoxColumn6.set_Width(0x69);
     this.dataGridViewTextBoxColumn2.set_DataPropertyName("ServiceProviderName");
     this.dataGridViewTextBoxColumn2.set_HeaderText("ПУ");
     this.dataGridViewTextBoxColumn2.set_Name("dataGridViewTextBoxColumn2");
     this.dataGridViewTextBoxColumn2.set_Width(0x30);
     this.dataGridViewTextBoxColumn5.set_DataPropertyName("FromDate");
     this.dataGridViewTextBoxColumn5.set_HeaderText("Дата начала");
     this.dataGridViewTextBoxColumn5.set_Name("dataGridViewTextBoxColumn5");
     this.dataGridViewTextBoxColumn5.set_Width(0x58);
     this.dataGridViewTextBoxColumn4.set_DataPropertyName("ServiceTypeName");
     this.dataGridViewTextBoxColumn4.set_HeaderText("Тип услуг");
     this.dataGridViewTextBoxColumn4.set_Name("dataGridViewTextBoxColumn4");
     this.dataGridViewTextBoxColumn4.set_Width(0x4b);
     this.dataGridViewTextBoxColumn3.set_DataPropertyName("ServiceTypeCode");
     this.dataGridViewTextBoxColumn3.set_HeaderText("Код типа услуг");
     this.dataGridViewTextBoxColumn3.set_Name("dataGridViewTextBoxColumn3");
     this.dataGridViewTextBoxColumn3.set_Width(0x62);
     this.dataGridViewTextBoxColumn7.set_DataPropertyName("Created");
     this.dataGridViewTextBoxColumn7.set_HeaderText("Дата создания");
     this.dataGridViewTextBoxColumn7.set_Name("dataGridViewTextBoxColumn7");
     base.set_AutoScaleDimensions(new System.Drawing.SizeF(6f, 13f));
     base.set_AutoScaleMode(System.Windows.Forms.AutoScaleMode.Font);
     base.Controls.Add(this.panel1);
     base.Controls.Add(this.splitter1);
     base.Controls.Add(this.addressTreeView);
     base.set_Name("HousesView");
     base.set_Size(new System.Drawing.Size(0x3d9, 0x295));
     base.add_Load(new System.EventHandler(this.HousesView_Load));
     this.tabPasportHouse.ResumeLayout(false);
     this.tabEquipments.ResumeLayout(false);
     this.tsApartmentNumberAddress.ResumeLayout(false);
     this.tsApartmentNumberAddress.PerformLayout();
     this.tabPageCollectionCounters.ResumeLayout(false);
     this.tabSesonals.ResumeLayout(false);
     this.tabPageNonresidentialApartments.ResumeLayout(false);
     this.tabPageOrganizatios.ResumeLayout(false);
     this.tab.ResumeLayout(false);
     this.tabHouseAreas.ResumeLayout(false);
     this.tabPageHouseTreatyCommitment.ResumeLayout(false);
     this.tabPageHouseServiceNorms.ResumeLayout(false);
     this.tabPageHouseServiceTariffs.ResumeLayout(false);
     this.tabPageHouseBindingServices.ResumeLayout(false);
     this.panel1.ResumeLayout(false);
     this.panel1.PerformLayout();
     base.ResumeLayout(false);
 }
Ejemplo n.º 16
0
 public void Fill(House house)
 {
     this.m_House = house;
     this.RefreshHouseServiceProviders();
     this.RefreshHouseHouseHolders();
     this.RefreshHouseResourceProviders();
     if (!User.IsMemberOf(RightsEnum.ПросмотрДанныхПоВсемОрганизациям))
     {
         this.tsHouseHouseHolders.set_Enabled(false);
         this.tsHouseResourceProviders.set_Enabled(false);
         this.tsHouseServices.set_Enabled(false);
     }
 }
Ejemplo n.º 17
0
 public HistoryHouseAreasForm(House house)
 {
     this.m_House = house;
     this.InitializeComponent();
     this.historyHouseAreasView1.Fill(this.m_House);
 }
Ejemplo n.º 18
0
 private void addressTreeView_AfterSelect(object sender, System.Windows.Forms.TreeViewEventArgs e)
 {
     this.house = new House();
     this.address = (LocalAddress) e.Node.get_Tag();
     if (this.address.Level == AddressLevel.Улица)
     {
         this.tstbApartmentAddress.set_Text(this.address.FullName);
         this.tabControl.set_Visible(false);
     }
     if (this.address.Level == AddressLevel.Дом)
     {
         this.house = House.FindByAddress(this.address);
         this.tstbApartmentAddress.set_Text(this.address.FullName);
         this.UpdateBindingSourceHouseService();
         this.UpdateHouseApartmentDetail(this.house.Id);
         this.UpdateBindingSourceHouseInspection();
         this.tabControl.set_Visible(true);
         this.ujfHouseInfoView1.fill(this.house.Id);
         this.fillNotLivingAndLandArea();
         this.fillHouseEngineerSystems();
         this.UpdateBindingSourceMeeting();
     }
 }
 private void InitializeComponent()
 {
     Area area = new Area();
     House house = new House();
     this.btnCancel = new System.Windows.Forms.Button();
     this.btnOk = new System.Windows.Forms.Button();
     this.datePeriod = new DatePeriod();
     this.label2 = new System.Windows.Forms.Label();
     this.label1 = new System.Windows.Forms.Label();
     this.selectServices = new SelectServices();
     base.SuspendLayout();
     this.btnCancel.set_Location(new System.Drawing.Point(0x162, 0x1f));
     this.btnCancel.set_Name("btnCancel");
     this.btnCancel.set_Size(new System.Drawing.Size(0x42, 0x16));
     this.btnCancel.set_TabIndex(0x5d);
     this.btnCancel.set_Text("Отменить");
     this.btnCancel.set_UseVisualStyleBackColor(true);
     this.btnCancel.add_Click(new System.EventHandler(this.btnCancel_Click));
     this.btnOk.set_Location(new System.Drawing.Point(0x11a, 0x1f));
     this.btnOk.set_Name("btnOk");
     this.btnOk.set_Size(new System.Drawing.Size(0x42, 0x16));
     this.btnOk.set_TabIndex(0x5c);
     this.btnOk.set_Text("Добавить");
     this.btnOk.set_UseVisualStyleBackColor(true);
     this.btnOk.add_Click(new System.EventHandler(this.btnOk_Click));
     this.datePeriod.AttachToPeriod = false;
     this.datePeriod.DateBeginReadonly = false;
     this.datePeriod.DateEndReadonly = false;
     this.datePeriod.set_Location(new System.Drawing.Point(0x35, 0x20));
     this.datePeriod.set_Margin(new System.Windows.Forms.Padding(4));
     this.datePeriod.set_Name("datePeriod");
     this.datePeriod.set_Size(new System.Drawing.Size(0xe9, 0x17));
     this.datePeriod.set_TabIndex(0x5b);
     this.label2.set_AutoSize(true);
     this.label2.set_Location(new System.Drawing.Point(1, 0x24));
     this.label2.set_Name("label2");
     this.label2.set_Size(new System.Drawing.Size(0x2d, 13));
     this.label2.set_TabIndex(90);
     this.label2.set_Text("Период");
     this.label1.set_AutoSize(true);
     this.label1.set_Location(new System.Drawing.Point(1, 11));
     this.label1.set_Name("label1");
     this.label1.set_Size(new System.Drawing.Size(0x2b, 13));
     this.label1.set_TabIndex(0x59);
     this.label1.set_Text("Услуга");
     area.AreaGroupId = 0L;
     area.AreaGroupName = null;
     area.Id = 0L;
     area.IsDeleted = false;
     area.IsDirty = true;
     area.StatusTemporary = 0;
     area.Name = "";
     area.ObjectWithIdType = null;
     this.selectServices.Area = area;
     this.selectServices.Date = new System.DateTime(0L);
     this.selectServices.FromDate = new System.DateTime(0L);
     house.AdrId = 0L;
     house.AdrName = null;
     int[] numArray = new int[4];
     house.AnotherSquare = new decimal(numArray);
     house.BoroughId = 0;
     house.BoroughName = null;
     house.CargoLift = 0;
     house.Created = new System.DateTime(0L);
     house.Entrance = 0;
     house.FireAlarmType = 0;
     house.FireAlarmTypeName = null;
     int[] numArray2 = new int[4];
     house.FiredArea = new decimal(numArray2);
     house.FiveRoom = 0;
     house.Flat = 0;
     house.Floor = 0;
     int[] numArray3 = new int[4];
     house.FloorArea = new decimal(numArray3);
     house.FormControl = 0;
     house.FormControlTypeName = null;
     house.FourRoom = 0;
     house.GvsType = 0;
     house.GvsTypeName = null;
     house.HeatingType = 0;
     house.HeatingTypeName = null;
     house.HouseChief = null;
     house.HvsType = 0;
     house.HvsTypeName = null;
     house.Id = 0L;
     house.IsDeleted = false;
     house.IsDirty = false;
     int[] numArray4 = new int[4];
     house.KitchensSquare = new decimal(numArray4);
     house.Lift = 0;
     int[] numArray5 = new int[4];
     house.LivingSquare = new decimal(numArray5);
     house.LocalBroadcastingType = 0;
     house.LocalBroadcastingTypeName = null;
     house.ObjectWithIdType = null;
     house.OnDate = new System.DateTime(0L);
     house.OneRoom = 0;
     house.OverflowType = 0;
     house.OverFlowTypeName = null;
     house.OwnershipType = 0;
     house.OwnerShipTypeName = null;
     house.PassLift = 0;
     house.PercentWear = 0;
     house.RoofType = 0;
     house.RoofTypeName = null;
     house.Series = 0;
     house.SewerType = 0;
     house.SewerTypeName = null;
     house.StoveType = 0;
     house.StoveTypeName = null;
     house.SubProvider = null;
     house.ThreeRoom = 0;
     int[] numArray6 = new int[4];
     house.ToiletsSquare = new decimal(numArray6);
     int[] numArray7 = new int[4];
     house.TotalArea = new decimal(numArray7);
     int[] numArray8 = new int[4];
     house.TotalStructureVolume = new decimal(numArray8);
     house.Tvenquipmenttype = 0;
     house.Tvenquipmenttypename = null;
     house.TwoRoom = 0;
     house.Type = 0;
     house.TypeName = null;
     house.UtilizationType = 0;
     house.UtilizationTypeName = null;
     house.WallType = 0;
     house.WallTypeName = null;
     house.YearBegin = 0;
     house.YearPassport = 0;
     this.selectServices.House = house;
     this.selectServices.IsMultiSelect = false;
     this.selectServices.set_Location(new System.Drawing.Point(0x4f, 4));
     this.selectServices.set_Name("selectServices");
     this.selectServices.set_Size(new System.Drawing.Size(0x155, 20));
     this.selectServices.set_TabIndex(0x58);
     this.selectServices.ToDate = new System.DateTime(0x270f, 12, 0x1f, 0x17, 0x3b, 0x3b, 0x3e7);
     base.set_AutoScaleDimensions(new System.Drawing.SizeF(6f, 13f));
     base.set_AutoScaleMode(System.Windows.Forms.AutoScaleMode.Font);
     base.set_ClientSize(new System.Drawing.Size(0x1a8, 0x3b));
     base.Controls.Add(this.btnCancel);
     base.Controls.Add(this.btnOk);
     base.Controls.Add(this.datePeriod);
     base.Controls.Add(this.label2);
     base.Controls.Add(this.label1);
     base.Controls.Add(this.selectServices);
     base.set_FormBorderStyle(System.Windows.Forms.FormBorderStyle.FixedDialog);
     base.set_Name("HouseCounterServiceCounterAddChangeForm");
     base.set_StartPosition(System.Windows.Forms.FormStartPosition.CenterScreen);
     base.add_Load(new System.EventHandler(this.HouseCounterServiceCounterAddChangeForm_Load));
     base.add_FormClosed(new System.Windows.Forms.FormClosedEventHandler(this.HouseCounterServiceCounterAddChangeForm_FormClosed));
     base.ResumeLayout(false);
     base.PerformLayout();
 }
Ejemplo n.º 20
0
 public HouseApartmentTypeForm(House house)
     : this()
 {
     this.m_House = house;
     this.save = false;
 }
Ejemplo n.º 21
0
 public static ObjectList<HouseServiceSeason> FindByHouse(House house)
 {
     return Mappers.HouseServiceSeasonMapper.FindByHouseId(house.Id);
 }
Ejemplo n.º 22
0
 public static ObjectList<HouseTreatyCommitment> FindByHouse(House house)
 {
     return Mappers.HouseTreatyCommitmentMapper.FindByHouseId(house.Id);
 }
Ejemplo n.º 23
0
 private void UpdateHouse(House house, LocalAddress address)
 {
     this.m_House = house;
     if ((this.m_House == null) || (this.m_House == House.Null))
     {
         this.UnVisibleView();
     }
     else
     {
         this.tstbApartmentAddress.set_Text(address.FullName);
         this.housePassportView.LoadControl();
         if (!this.housePassportView.get_Visible())
         {
             this.housePassportView.set_Visible(true);
             this.btnSave.set_Visible(true);
         }
         if (!this.historyHouseAreasView1.get_Visible())
         {
             this.historyHouseAreasView1.set_Visible(true);
         }
         if (!this.houseIngenerTableView.get_Visible())
         {
             this.houseIngenerTableView.set_Visible(true);
             this.btnSave2.set_Visible(true);
         }
         if (!this.houseCountersView.get_Visible())
         {
             this.houseCountersView.set_Visible(true);
         }
         if (!this.houseServiceSeasonsView.get_Visible())
         {
             this.houseServiceSeasonsView.set_Visible(true);
         }
         if (!this.houseTreatyCommitmentView.get_Visible())
         {
             this.houseTreatyCommitmentView.set_Visible(true);
         }
         if (!this.nonresidentialApartmentsView.get_Visible())
         {
             this.nonresidentialApartmentsView.set_Visible(true);
         }
         if (!this.houseOrganizationsView.get_Visible())
         {
             this.houseOrganizationsView.set_Visible(true);
         }
         if (!this.houseServiceNormsView.get_Visible())
         {
             this.houseServiceNormsView.set_Visible(true);
         }
         if (!this.houseServiceTariffsView.get_Visible())
         {
             this.houseServiceTariffsView.set_Visible(true);
         }
         if (!this.housesBindingServicesView.get_Visible())
         {
             this.housesBindingServicesView.set_Visible(true);
         }
         this.RefreshTabControl();
         this.tabControl1_Selected(null, null);
     }
 }
Ejemplo n.º 24
0
 private void InitializeComponent()
 {
     Area area = new Area();
     House house = new House();
     this.label6 = new System.Windows.Forms.Label();
     this.btnAddChange = new System.Windows.Forms.Button();
     this.btnCancel = new System.Windows.Forms.Button();
     this.label1 = new System.Windows.Forms.Label();
     this.label2 = new System.Windows.Forms.Label();
     this.label3 = new System.Windows.Forms.Label();
     this.label4 = new System.Windows.Forms.Label();
     this.label5 = new System.Windows.Forms.Label();
     this.lbAddress = new System.Windows.Forms.Label();
     this.lbTarif = new System.Windows.Forms.Label();
     this.lbResource = new System.Windows.Forms.Label();
     this.lbHouseHolder = new System.Windows.Forms.Label();
     this.lbServiceType = new System.Windows.Forms.Label();
     this.label10 = new System.Windows.Forms.Label();
     this.lbIsSeasonal = new System.Windows.Forms.Label();
     this.label11 = new System.Windows.Forms.Label();
     this.groupBox1 = new System.Windows.Forms.GroupBox();
     this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
     this.lblCanonicalName = new System.Windows.Forms.Label();
     this.label8 = new System.Windows.Forms.Label();
     this.chbxValidated = new System.Windows.Forms.CheckBox();
     this.chbxOpenedByError = new System.Windows.Forms.CheckBox();
     this.cb_UseOrganizations = new System.Windows.Forms.CheckBox();
     this.label7 = new System.Windows.Forms.Label();
     this.label9 = new System.Windows.Forms.Label();
     this.selectCloseOrgDocument = new SelectOrgDocument();
     this.selectOpenOrgDocument = new SelectOrgDocument();
     this.selectServices = new SelectServices();
     this.datePeriod = new DatePeriod();
     this.groupBox1.SuspendLayout();
     this.tableLayoutPanel1.SuspendLayout();
     base.SuspendLayout();
     this.label6.set_Anchor(System.Windows.Forms.AnchorStyles.Right | System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Top);
     this.label6.set_AutoSize(true);
     this.label6.set_Location(new System.Drawing.Point(4, 0x73));
     this.label6.set_Name("label6");
     this.label6.set_Size(new System.Drawing.Size(0x2e, 13));
     this.label6.set_TabIndex(0x36);
     this.label6.set_Text("Услуга:");
     this.btnAddChange.set_Anchor(System.Windows.Forms.AnchorStyles.Right | System.Windows.Forms.AnchorStyles.Bottom);
     this.btnAddChange.set_Location(new System.Drawing.Point(0x1d4, 0x11c));
     this.btnAddChange.set_Name("btnAddChange");
     this.btnAddChange.set_Size(new System.Drawing.Size(80, 0x19));
     this.btnAddChange.set_TabIndex(60);
     this.btnAddChange.set_UseVisualStyleBackColor(true);
     this.btnAddChange.add_Click(new System.EventHandler(this.btnAddChange_Click));
     this.btnCancel.set_Anchor(System.Windows.Forms.AnchorStyles.Right | System.Windows.Forms.AnchorStyles.Bottom);
     this.btnCancel.set_Location(new System.Drawing.Point(0x22a, 0x11c));
     this.btnCancel.set_Name("btnCancel");
     this.btnCancel.set_Size(new System.Drawing.Size(80, 0x19));
     this.btnCancel.set_TabIndex(70);
     this.btnCancel.set_Text("Отмена");
     this.btnCancel.set_UseVisualStyleBackColor(true);
     this.btnCancel.add_Click(new System.EventHandler(this.btnCancel_Click));
     this.label1.set_AutoSize(true);
     this.label1.set_Location(new System.Drawing.Point(4, 13));
     this.label1.set_Name("label1");
     this.label1.set_Size(new System.Drawing.Size(0x2d, 13));
     this.label1.set_TabIndex(0x3a);
     this.label1.set_Text("Период");
     this.label2.set_AutoSize(true);
     this.label2.set_Location(new System.Drawing.Point(3, 13));
     this.label2.set_Name("label2");
     this.label2.set_Size(new System.Drawing.Size(0x88, 13));
     this.label2.set_TabIndex(0x3e);
     this.label2.set_Text("Управляющая компания:");
     this.label3.set_AutoSize(true);
     this.label3.set_Location(new System.Drawing.Point(3, 0x1a));
     this.label3.set_Name("label3");
     this.label3.set_Size(new System.Drawing.Size(0x98, 13));
     this.label3.set_TabIndex(0x3f);
     this.label3.set_Text("Ресурсоснабж.организация:");
     this.label4.set_AutoSize(true);
     this.label4.set_Location(new System.Drawing.Point(3, 0x27));
     this.label4.set_Name("label4");
     this.label4.set_Size(new System.Drawing.Size(0x2b, 13));
     this.label4.set_TabIndex(0x40);
     this.label4.set_Text("Тариф:");
     this.label5.set_AutoSize(true);
     this.label5.set_Location(new System.Drawing.Point(3, 0x34));
     this.label5.set_Name("label5");
     this.label5.set_Size(new System.Drawing.Size(0x29, 13));
     this.label5.set_TabIndex(0x41);
     this.label5.set_Text("Адрес:");
     this.lbAddress.set_AutoSize(true);
     this.lbAddress.set_Location(new System.Drawing.Point(0xcb, 0x34));
     this.lbAddress.set_Name("lbAddress");
     this.lbAddress.set_Size(new System.Drawing.Size(0x35, 13));
     this.lbAddress.set_TabIndex(0x45);
     this.lbAddress.set_Text("lbAddress");
     this.lbTarif.set_AutoSize(true);
     this.lbTarif.set_Location(new System.Drawing.Point(0xcb, 0x27));
     this.lbTarif.set_Name("lbTarif");
     this.lbTarif.set_Size(new System.Drawing.Size(0x24, 13));
     this.lbTarif.set_TabIndex(0x44);
     this.lbTarif.set_Text("lbTarif");
     this.lbResource.set_AutoSize(true);
     this.lbResource.set_Location(new System.Drawing.Point(0xcb, 0x1a));
     this.lbResource.set_Name("lbResource");
     this.lbResource.set_Size(new System.Drawing.Size(0x3d, 13));
     this.lbResource.set_TabIndex(0x43);
     this.lbResource.set_Text("lbResource");
     this.lbHouseHolder.set_AutoSize(true);
     this.lbHouseHolder.set_Location(new System.Drawing.Point(0xcb, 13));
     this.lbHouseHolder.set_Name("lbHouseHolder");
     this.lbHouseHolder.set_Size(new System.Drawing.Size(0x4d, 13));
     this.lbHouseHolder.set_TabIndex(0x42);
     this.lbHouseHolder.set_Text("lbHouseHolder");
     this.lbServiceType.set_AutoSize(true);
     this.lbServiceType.set_Location(new System.Drawing.Point(0xcb, 0));
     this.lbServiceType.set_Name("lbServiceType");
     this.lbServiceType.set_Size(new System.Drawing.Size(0x4b, 13));
     this.lbServiceType.set_TabIndex(0x47);
     this.lbServiceType.set_Text("lbServiceType");
     this.label10.set_AutoSize(true);
     this.label10.set_Location(new System.Drawing.Point(3, 0));
     this.label10.set_Name("label10");
     this.label10.set_Size(new System.Drawing.Size(0x41, 13));
     this.label10.set_TabIndex(70);
     this.label10.set_Text("Тип услуги:");
     this.lbIsSeasonal.set_AutoSize(true);
     this.lbIsSeasonal.set_Location(new System.Drawing.Point(0xcb, 0x41));
     this.lbIsSeasonal.set_Name("lbIsSeasonal");
     this.lbIsSeasonal.set_Size(new System.Drawing.Size(0x43, 13));
     this.lbIsSeasonal.set_TabIndex(0x49);
     this.lbIsSeasonal.set_Text("lbIsSeasonal");
     this.label11.set_AutoSize(true);
     this.label11.set_Location(new System.Drawing.Point(3, 0x41));
     this.label11.set_Name("label11");
     this.label11.set_Size(new System.Drawing.Size(70, 13));
     this.label11.set_TabIndex(0x48);
     this.label11.set_Text("Сезонность:");
     this.groupBox1.set_Anchor(System.Windows.Forms.AnchorStyles.Right | System.Windows.Forms.AnchorStyles.Bottom);
     this.groupBox1.Controls.Add(this.tableLayoutPanel1);
     this.groupBox1.set_Location(new System.Drawing.Point(2, 0x8b));
     this.groupBox1.set_Name("groupBox1");
     this.groupBox1.set_Size(new System.Drawing.Size(0x278, 0x8b));
     this.groupBox1.set_TabIndex(0x4a);
     this.groupBox1.set_TabStop(false);
     this.groupBox1.set_Text("Параметры услуги");
     this.tableLayoutPanel1.set_ColumnCount(2);
     this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 200f));
     this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100f));
     this.tableLayoutPanel1.Controls.Add(this.label10, 0, 0);
     this.tableLayoutPanel1.Controls.Add(this.lblCanonicalName, 1, 6);
     this.tableLayoutPanel1.Controls.Add(this.label2, 0, 1);
     this.tableLayoutPanel1.Controls.Add(this.lbIsSeasonal, 1, 5);
     this.tableLayoutPanel1.Controls.Add(this.lbServiceType, 1, 0);
     this.tableLayoutPanel1.Controls.Add(this.lbAddress, 1, 4);
     this.tableLayoutPanel1.Controls.Add(this.label8, 0, 6);
     this.tableLayoutPanel1.Controls.Add(this.lbTarif, 1, 3);
     this.tableLayoutPanel1.Controls.Add(this.lbHouseHolder, 1, 1);
     this.tableLayoutPanel1.Controls.Add(this.lbResource, 1, 2);
     this.tableLayoutPanel1.Controls.Add(this.label3, 0, 2);
     this.tableLayoutPanel1.Controls.Add(this.label4, 0, 3);
     this.tableLayoutPanel1.Controls.Add(this.label5, 0, 4);
     this.tableLayoutPanel1.Controls.Add(this.label11, 0, 5);
     this.tableLayoutPanel1.set_Dock(System.Windows.Forms.DockStyle.Fill);
     this.tableLayoutPanel1.set_Location(new System.Drawing.Point(3, 0x10));
     this.tableLayoutPanel1.set_Name("tableLayoutPanel1");
     this.tableLayoutPanel1.set_RowCount(7);
     this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle());
     this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle());
     this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle());
     this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle());
     this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle());
     this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle());
     this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle());
     this.tableLayoutPanel1.set_Size(new System.Drawing.Size(0x272, 120));
     this.tableLayoutPanel1.set_TabIndex(0x4c);
     this.lblCanonicalName.set_AutoSize(true);
     this.lblCanonicalName.set_Location(new System.Drawing.Point(0xcb, 0x4e));
     this.lblCanonicalName.set_Name("lblCanonicalName");
     this.lblCanonicalName.set_Size(new System.Drawing.Size(0x5c, 13));
     this.lblCanonicalName.set_TabIndex(0x4d);
     this.lblCanonicalName.set_Text("lblCanonicalName");
     this.label8.set_AutoSize(true);
     this.label8.set_Location(new System.Drawing.Point(3, 0x4e));
     this.label8.set_Name("label8");
     this.label8.set_Size(new System.Drawing.Size(0x76, 13));
     this.label8.set_TabIndex(0x4c);
     this.label8.set_Text("Вид благоустройства:");
     this.chbxValidated.set_Anchor(System.Windows.Forms.AnchorStyles.Right | System.Windows.Forms.AnchorStyles.Bottom);
     this.chbxValidated.set_AutoSize(true);
     this.chbxValidated.set_Location(new System.Drawing.Point(0x148, 0x121));
     this.chbxValidated.set_Name("chbxValidated");
     this.chbxValidated.set_Size(new System.Drawing.Size(0x86, 0x11));
     this.chbxValidated.set_TabIndex(50);
     this.chbxValidated.set_Text("Усиленный контроль");
     this.chbxValidated.set_UseVisualStyleBackColor(true);
     this.chbxOpenedByError.set_AutoSize(true);
     this.chbxOpenedByError.set_Location(new System.Drawing.Point(0x148, 0x10));
     this.chbxOpenedByError.set_Name("chbxOpenedByError");
     this.chbxOpenedByError.set_Size(new System.Drawing.Size(0x7a, 0x11));
     this.chbxOpenedByError.set_TabIndex(20);
     this.chbxOpenedByError.set_Text("Ошибочно открыта");
     this.chbxOpenedByError.set_UseVisualStyleBackColor(true);
     this.cb_UseOrganizations.set_AutoSize(true);
     this.cb_UseOrganizations.set_Location(new System.Drawing.Point(12, 0x2b));
     this.cb_UseOrganizations.set_Name("cb_UseOrganizations");
     this.cb_UseOrganizations.set_Size(new System.Drawing.Size(0xe2, 0x11));
     this.cb_UseOrganizations.set_TabIndex(30);
     this.cb_UseOrganizations.set_Text("Выбрать услуги по организациям дома");
     this.cb_UseOrganizations.set_UseVisualStyleBackColor(true);
     this.cb_UseOrganizations.add_CheckedChanged(new System.EventHandler(this.cb_UseOrganizations_CheckedChanged));
     this.label7.set_AutoSize(true);
     this.label7.set_Location(new System.Drawing.Point(4, 0x3f));
     this.label7.set_Name("label7");
     this.label7.set_Size(new System.Drawing.Size(0xa9, 13));
     this.label7.set_TabIndex(0x4d);
     this.label7.set_Text("Документ: основание открытия");
     this.label9.set_AutoSize(true);
     this.label9.set_Location(new System.Drawing.Point(4, 0x57));
     this.label9.set_Name("label9");
     this.label9.set_Size(new System.Drawing.Size(170, 13));
     this.label9.set_TabIndex(0x4e);
     this.label9.set_Text("Документ: основание закрытия");
     this.selectCloseOrgDocument.set_Anchor(System.Windows.Forms.AnchorStyles.Right | System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Top);
     this.selectCloseOrgDocument.set_Location(new System.Drawing.Point(0xbc, 0x57));
     this.selectCloseOrgDocument.set_Name("selectCloseOrgDocument");
     this.selectCloseOrgDocument.set_Size(new System.Drawing.Size(0x1bb, 20));
     this.selectCloseOrgDocument.set_TabIndex(0x4c);
     this.selectOpenOrgDocument.set_Anchor(System.Windows.Forms.AnchorStyles.Right | System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Top);
     this.selectOpenOrgDocument.set_Location(new System.Drawing.Point(0xbc, 0x3d));
     this.selectOpenOrgDocument.set_Name("selectOpenOrgDocument");
     this.selectOpenOrgDocument.set_Size(new System.Drawing.Size(0x1bb, 20));
     this.selectOpenOrgDocument.set_TabIndex(0x4b);
     this.selectServices.set_Anchor(System.Windows.Forms.AnchorStyles.Right | System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Top);
     area.AreaGroupId = 0L;
     area.AreaGroupName = null;
     area.Id = 0L;
     area.IsDeleted = false;
     area.IsDirty = true;
     area.Name = "";
     area.ObjectWithIdType = null;
     area.StatusTemporary = 0;
     this.selectServices.Area = area;
     this.selectServices.Date = new System.DateTime(0L);
     this.selectServices.FromDate = new System.DateTime(0L);
     house.AdrId = 0L;
     house.AdrName = null;
     int[] numArray = new int[4];
     house.AnotherSquare = new decimal(numArray);
     house.BoroughId = 0;
     house.BoroughName = null;
     house.CanonicalTypeId = 0;
     house.CanonicalTypeName = null;
     house.CargoLift = 0;
     house.Created = new System.DateTime(0L);
     house.Entrance = 0;
     house.FireAlarmType = 0;
     house.FireAlarmTypeName = null;
     int[] numArray2 = new int[4];
     house.FiredArea = new decimal(numArray2);
     house.FiveRoom = 0;
     house.Flat = 0;
     house.FlatWithGarbageChute = 0;
     house.Floor = 0;
     int[] numArray3 = new int[4];
     house.FloorArea = new decimal(numArray3);
     house.FormControl = 0;
     house.FormControlTypeName = null;
     house.FourRoom = 0;
     house.GvsType = 0;
     house.GvsTypeName = null;
     house.HeatingType = 0;
     house.HeatingTypeName = null;
     house.HouseChief = null;
     house.HvsType = 0;
     house.HvsTypeName = null;
     house.Id = 0L;
     house.IsDeleted = false;
     house.IsDirty = false;
     int[] numArray4 = new int[4];
     house.KitchensSquare = new decimal(numArray4);
     house.Lift = 0;
     int[] numArray5 = new int[4];
     house.LivingSquare = new decimal(numArray5);
     house.LocalBroadcastingType = 0;
     house.LocalBroadcastingTypeName = null;
     house.ObjectWithIdType = null;
     house.OnDate = new System.DateTime(0L);
     house.OneRoom = 0;
     house.OverflowType = 0;
     house.OverFlowTypeName = null;
     house.OwnershipType = 0;
     house.OwnerShipTypeName = null;
     house.PassLift = 0;
     house.PercentWear = 0;
     house.PrintServices = 0;
     house.RoofType = 0;
     house.RoofTypeName = null;
     house.Series = 0;
     house.SewerType = 0;
     house.SewerTypeName = null;
     house.StoveType = 0;
     house.StoveTypeName = null;
     house.SubProvider = null;
     house.ThreeRoom = 0;
     int[] numArray6 = new int[4];
     house.ToiletsSquare = new decimal(numArray6);
     int[] numArray7 = new int[4];
     house.TotalArea = new decimal(numArray7);
     int[] numArray8 = new int[4];
     house.TotalStructureVolume = new decimal(numArray8);
     house.Tvenquipmenttype = 0;
     house.Tvenquipmenttypename = null;
     house.TwoRoom = 0;
     house.Type = 0;
     house.TypeName = null;
     house.UtilizationType = 0;
     house.UtilizationTypeName = null;
     house.WallType = 0;
     house.WallTypeName = null;
     house.YearBegin = 0;
     house.YearPassport = 0;
     this.selectServices.House = house;
     this.selectServices.IsMultiSelect = false;
     this.selectServices.set_Location(new System.Drawing.Point(0x38, 0x71));
     this.selectServices.set_Name("selectServices");
     this.selectServices.set_Size(new System.Drawing.Size(0x23f, 20));
     this.selectServices.set_TabIndex(40);
     this.selectServices.ToDate = new System.DateTime(0x270f, 12, 0x1f, 0x17, 0x3b, 0x3b, 0x3e7);
     this.selectServices.OnServicesSelected += new ServicesHandler(this.selectServices_OnServicesSelected);
     this.datePeriod.AttachToPeriod = false;
     this.datePeriod.DateBeginReadonly = false;
     this.datePeriod.DateEndReadonly = false;
     this.datePeriod.set_Location(new System.Drawing.Point(0x58, 10));
     this.datePeriod.set_Margin(new System.Windows.Forms.Padding(4));
     this.datePeriod.set_Name("datePeriod");
     this.datePeriod.set_Size(new System.Drawing.Size(0xe9, 0x17));
     this.datePeriod.set_TabIndex(10);
     this.datePeriod.OnDateBeginPeriodChangeHandler += new DateBeginPeriodChangeHandler(this.datePeriod_OnDateBeginPeriodChangeHandler);
     this.datePeriod.OnEndBeginPeriodChangeHandler += new DateEndPeriodChangeHandler(this.datePeriod_OnEndBeginPeriodChangeHandler);
     base.set_AutoScaleDimensions(new System.Drawing.SizeF(6f, 13f));
     base.set_AutoScaleMode(System.Windows.Forms.AutoScaleMode.Font);
     base.set_ClientSize(new System.Drawing.Size(0x286, 0x141));
     base.Controls.Add(this.label9);
     base.Controls.Add(this.label7);
     base.Controls.Add(this.selectCloseOrgDocument);
     base.Controls.Add(this.selectOpenOrgDocument);
     base.Controls.Add(this.cb_UseOrganizations);
     base.Controls.Add(this.chbxOpenedByError);
     base.Controls.Add(this.chbxValidated);
     base.Controls.Add(this.selectServices);
     base.Controls.Add(this.groupBox1);
     base.Controls.Add(this.datePeriod);
     base.Controls.Add(this.label1);
     base.Controls.Add(this.btnCancel);
     base.Controls.Add(this.btnAddChange);
     base.Controls.Add(this.label6);
     base.set_MaximizeBox(false);
     base.set_MinimizeBox(false);
     base.set_Name("AccountServiceAddChangeForm");
     base.set_StartPosition(System.Windows.Forms.FormStartPosition.CenterScreen);
     this.set_Text("AccountServiceAddChangeForm");
     base.add_Load(new System.EventHandler(this.AddChangeAccountServicesForm_Load));
     this.groupBox1.ResumeLayout(false);
     this.tableLayoutPanel1.ResumeLayout(false);
     this.tableLayoutPanel1.PerformLayout();
     base.ResumeLayout(false);
     base.PerformLayout();
 }
Ejemplo n.º 25
0
 private void UpdateView()
 {
     LocalAddress selectedAddress = this.addressTreeView.SelectedAddress;
     this.m_House = selectedAddress.GetHouse();
     this.UpdateHouse(this.m_House, selectedAddress);
 }
 private void InitializeComponent()
 {
     this.components = new Container();
     Area area = new Area();
     House house = new House();
     Area area2 = new Area();
     this.splitContainer1 = new System.Windows.Forms.SplitContainer();
     this.splitContainer2 = new System.Windows.Forms.SplitContainer();
     this.gbSearchParams = new System.Windows.Forms.GroupBox();
     this.label12 = new System.Windows.Forms.Label();
     this.selectServices1 = new AIS.SN.UI.Controls.SelectServices();
     this.cbxHousesWithoutNorms = new System.Windows.Forms.CheckBox();
     this.cbxHousesWithoutTariffs = new System.Windows.Forms.CheckBox();
     this.label2 = new System.Windows.Forms.Label();
     this.selectCanonicalType = new SelectFasetData();
     this.nudYearEnd = new System.Windows.Forms.NumericUpDown();
     this.lblYearEnd = new System.Windows.Forms.Label();
     this.nudYearBegin = new System.Windows.Forms.NumericUpDown();
     this.lblYearBegin = new System.Windows.Forms.Label();
     this.cbxYear = new System.Windows.Forms.CheckBox();
     this.cbxFloor = new System.Windows.Forms.CheckBox();
     this.nudFloorEnd = new System.Windows.Forms.NumericUpDown();
     this.lblFloorEnd = new System.Windows.Forms.Label();
     this.nudFloorBegin = new System.Windows.Forms.NumericUpDown();
     this.lblFloorBegin = new System.Windows.Forms.Label();
     this.selectAddresses = new SelectAddresses();
     this.bFind = new System.Windows.Forms.Button();
     this.label6 = new System.Windows.Forms.Label();
     this.label3 = new System.Windows.Forms.Label();
     this.cbxServiceType = new System.Windows.Forms.ComboBox();
     this.bsServiceTypes = new System.Windows.Forms.BindingSource(this.components);
     this.houseServiceTariffAddView = new HouseServiceTariffAddView();
     this.btnSave = new System.Windows.Forms.Button();
     this.dbxTariffDate = new DateBox();
     this.label9 = new System.Windows.Forms.Label();
     this.label1 = new System.Windows.Forms.Label();
     this.selectOrgDocument = new SelectOrgDocument();
     this.statusStrip = new System.Windows.Forms.StatusStrip();
     this.statsLabel = new System.Windows.Forms.ToolStripStatusLabel();
     this.splitContainer1.Panel1.SuspendLayout();
     this.splitContainer1.Panel2.SuspendLayout();
     this.splitContainer1.SuspendLayout();
     this.splitContainer2.Panel1.SuspendLayout();
     this.splitContainer2.Panel2.SuspendLayout();
     this.splitContainer2.SuspendLayout();
     this.gbSearchParams.SuspendLayout();
     this.nudYearEnd.BeginInit();
     this.nudYearBegin.BeginInit();
     this.nudFloorEnd.BeginInit();
     this.nudFloorBegin.BeginInit();
     this.bsServiceTypes.BeginInit();
     this.statusStrip.SuspendLayout();
     base.SuspendLayout();
     this.splitContainer1.set_Dock(System.Windows.Forms.DockStyle.Fill);
     this.splitContainer1.set_FixedPanel(System.Windows.Forms.FixedPanel.Panel2);
     this.splitContainer1.set_Location(new System.Drawing.Point(0, 0));
     this.splitContainer1.set_Name("splitContainer1");
     this.splitContainer1.set_Orientation(System.Windows.Forms.Orientation.Horizontal);
     this.splitContainer1.Panel1.Controls.Add(this.splitContainer2);
     this.splitContainer1.Panel2.Controls.Add(this.btnSave);
     this.splitContainer1.Panel2.Controls.Add(this.dbxTariffDate);
     this.splitContainer1.Panel2.Controls.Add(this.label9);
     this.splitContainer1.Panel2.Controls.Add(this.label1);
     this.splitContainer1.Panel2.Controls.Add(this.selectOrgDocument);
     this.splitContainer1.set_Size(new System.Drawing.Size(960, 0x27d));
     this.splitContainer1.set_SplitterDistance(0x23f);
     this.splitContainer1.set_TabIndex(1);
     this.splitContainer2.set_Dock(System.Windows.Forms.DockStyle.Fill);
     this.splitContainer2.set_FixedPanel(System.Windows.Forms.FixedPanel.Panel1);
     this.splitContainer2.set_Location(new System.Drawing.Point(0, 0));
     this.splitContainer2.set_Name("splitContainer2");
     this.splitContainer2.set_Orientation(System.Windows.Forms.Orientation.Horizontal);
     this.splitContainer2.Panel1.Controls.Add(this.gbSearchParams);
     this.splitContainer2.Panel2.Controls.Add(this.houseServiceTariffAddView);
     this.splitContainer2.set_Size(new System.Drawing.Size(960, 0x23f));
     this.splitContainer2.set_SplitterDistance(150);
     this.splitContainer2.set_TabIndex(1);
     this.gbSearchParams.Controls.Add(this.label12);
     this.gbSearchParams.Controls.Add(this.selectServices1);
     this.gbSearchParams.Controls.Add(this.cbxHousesWithoutNorms);
     this.gbSearchParams.Controls.Add(this.cbxHousesWithoutTariffs);
     this.gbSearchParams.Controls.Add(this.label2);
     this.gbSearchParams.Controls.Add(this.selectCanonicalType);
     this.gbSearchParams.Controls.Add(this.nudYearEnd);
     this.gbSearchParams.Controls.Add(this.lblYearEnd);
     this.gbSearchParams.Controls.Add(this.nudYearBegin);
     this.gbSearchParams.Controls.Add(this.lblYearBegin);
     this.gbSearchParams.Controls.Add(this.cbxYear);
     this.gbSearchParams.Controls.Add(this.cbxFloor);
     this.gbSearchParams.Controls.Add(this.nudFloorEnd);
     this.gbSearchParams.Controls.Add(this.lblFloorEnd);
     this.gbSearchParams.Controls.Add(this.nudFloorBegin);
     this.gbSearchParams.Controls.Add(this.lblFloorBegin);
     this.gbSearchParams.Controls.Add(this.selectAddresses);
     this.gbSearchParams.Controls.Add(this.bFind);
     this.gbSearchParams.Controls.Add(this.label6);
     this.gbSearchParams.Controls.Add(this.label3);
     this.gbSearchParams.Controls.Add(this.cbxServiceType);
     this.gbSearchParams.set_Dock(System.Windows.Forms.DockStyle.Fill);
     this.gbSearchParams.set_Location(new System.Drawing.Point(0, 0));
     this.gbSearchParams.set_Name("gbSearchParams");
     this.gbSearchParams.set_Size(new System.Drawing.Size(960, 150));
     this.gbSearchParams.set_TabIndex(0);
     this.gbSearchParams.set_TabStop(false);
     this.gbSearchParams.set_Text("Параметры поиска");
     this.label12.set_AutoSize(true);
     this.label12.set_Location(new System.Drawing.Point(12, 0x34));
     this.label12.set_Name("label12");
     this.label12.set_Size(new System.Drawing.Size(0x2b, 13));
     this.label12.set_TabIndex(0x37);
     this.label12.set_Text("Услуга");
     area.AreaGroupId = 0L;
     area.AreaGroupName = null;
     area.Id = 0L;
     area.IsDeleted = false;
     area.IsDirty = true;
     area.Name = "";
     area.ObjectWithIdType = null;
     area.StatusTemporary = 0;
     this.selectServices1.Area = area;
     this.selectServices1.Date = new System.DateTime(0L);
     this.selectServices1.FromDate = new System.DateTime(0L);
     house.AdrId = 0L;
     house.AdrName = null;
     int[] numArray = new int[4];
     house.AnotherSquare = new decimal(numArray);
     house.BoroughId = 0;
     house.BoroughName = null;
     house.CanonicalTypeId = 0;
     house.CanonicalTypeName = null;
     house.CargoLift = 0;
     house.Created = new System.DateTime(0L);
     house.DomKom = false;
     house.DomKomTarif = 0.0;
     house.Entrance = 0;
     house.ExternalKey = 0L;
     house.FireAlarmType = 0;
     house.FireAlarmTypeName = null;
     int[] numArray2 = new int[4];
     house.FiredArea = new decimal(numArray2);
     house.FiveRoom = 0;
     house.Flat = 0;
     house.FlatWithGarbageChute = 0;
     house.Floor = 0;
     int[] numArray3 = new int[4];
     house.FloorArea = new decimal(numArray3);
     house.FormControl = 0;
     house.FormControlTypeName = null;
     house.FoundationType = 0;
     house.FoundationTypeName = null;
     house.FourRoom = 0;
     house.GvsType = 0;
     house.GvsTypeName = null;
     house.HeatingType = 0;
     house.HeatingTypeName = null;
     house.HouseChief = null;
     house.HvsType = 0;
     house.HvsTypeName = null;
     house.Id = 0L;
     house.IsDeleted = false;
     house.IsDirty = false;
     house.KapRemontYear = 0;
     int[] numArray4 = new int[4];
     house.KitchensSquare = new decimal(numArray4);
     house.Lift = 0;
     int[] numArray5 = new int[4];
     house.LivingSquare = new decimal(numArray5);
     house.LocalBroadcastingType = 0;
     house.LocalBroadcastingTypeName = null;
     house.MusorCount = 0;
     house.ObjectWithIdType = null;
     house.OnDate = new System.DateTime(0L);
     house.OneRoom = 0;
     house.OverflowType = 0;
     house.OverFlowTypeName = null;
     house.OverlapType = 0;
     house.OverlapTypeName = null;
     house.OwnershipType = 0;
     house.OwnerShipTypeName = null;
     house.PassLift = 0;
     house.PassportNum = 0;
     house.PercentWear = 0;
     house.PrintServices = 0;
     house.RaionSud = null;
     house.RoofType = 0;
     house.RoofTypeName = null;
     house.Series = 0;
     house.SewerType = 0;
     house.SewerTypeName = null;
     house.StoveType = 0;
     house.StoveTypeName = null;
     house.SubProvider = null;
     house.Sud = 0;
     house.SudUc = null;
     house.TerritorialManagement = 0;
     house.TerritorialManagementName = null;
     house.ThreeRoom = 0;
     int[] numArray6 = new int[4];
     house.ToiletsSquare = new decimal(numArray6);
     int[] numArray7 = new int[4];
     house.TotalArea = new decimal(numArray7);
     int[] numArray8 = new int[4];
     house.TotalAreaLivingNonLivingMkd = new decimal(numArray8);
     int[] numArray9 = new int[4];
     house.TotalAreaMkd = new decimal(numArray9);
     int[] numArray10 = new int[4];
     house.TotalAreaOi = new decimal(numArray10);
     int[] numArray11 = new int[4];
     house.TotalStructureVolume = new decimal(numArray11);
     house.Tvenquipmenttype = 0;
     house.Tvenquipmenttypename = null;
     house.TwoRoom = 0;
     house.Type = 0;
     house.TypeName = null;
     house.UtilizationType = 0;
     house.UtilizationTypeName = null;
     house.WallType = 0;
     house.WallTypeName = null;
     house.YearBegin = 0;
     house.YearPassport = 0;
     this.selectServices1.House = house;
     this.selectServices1.IsMultiSelect = false;
     this.selectServices1.set_Location(new System.Drawing.Point(0x80, 50));
     this.selectServices1.set_MinimumSize(new System.Drawing.Size(0x159, 0));
     this.selectServices1.set_Name("selectServices1");
     this.selectServices1.set_Size(new System.Drawing.Size(0x19d, 20));
     this.selectServices1.set_TabIndex(0x36);
     this.selectServices1.ToDate = new System.DateTime(0x270f, 12, 0x1f, 0x17, 0x3b, 0x3b, 0x3e7);
     this.cbxHousesWithoutNorms.set_Anchor(System.Windows.Forms.AnchorStyles.Right | System.Windows.Forms.AnchorStyles.Top);
     this.cbxHousesWithoutNorms.set_AutoSize(true);
     this.cbxHousesWithoutNorms.set_Location(new System.Drawing.Point(560, 0x74));
     this.cbxHousesWithoutNorms.set_Name("cbxHousesWithoutNorms");
     this.cbxHousesWithoutNorms.set_Size(new System.Drawing.Size(140, 0x11));
     this.cbxHousesWithoutNorms.set_TabIndex(11);
     this.cbxHousesWithoutNorms.set_Text("Дома без нормативов");
     this.cbxHousesWithoutNorms.set_UseVisualStyleBackColor(true);
     this.cbxHousesWithoutTariffs.set_Anchor(System.Windows.Forms.AnchorStyles.Right | System.Windows.Forms.AnchorStyles.Top);
     this.cbxHousesWithoutTariffs.set_AutoSize(true);
     this.cbxHousesWithoutTariffs.set_Location(new System.Drawing.Point(560, 0x55));
     this.cbxHousesWithoutTariffs.set_Name("cbxHousesWithoutTariffs");
     this.cbxHousesWithoutTariffs.set_Size(new System.Drawing.Size(0x7a, 0x11));
     this.cbxHousesWithoutTariffs.set_TabIndex(10);
     this.cbxHousesWithoutTariffs.set_Text("Дома без тарифов");
     this.cbxHousesWithoutTariffs.set_UseVisualStyleBackColor(true);
     this.label2.set_AutoSize(true);
     this.label2.set_Location(new System.Drawing.Point(12, 0x55));
     this.label2.set_Name("label2");
     this.label2.set_Size(new System.Drawing.Size(0x73, 13));
     this.label2.set_TabIndex(0x2e);
     this.label2.set_Text("Вид благоустройства");
     this.selectCanonicalType.set_Anchor(System.Windows.Forms.AnchorStyles.Right | System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Top);
     this.selectCanonicalType.set_FormattingEnabled(true);
     this.selectCanonicalType.set_Location(new System.Drawing.Point(0x80, 0x51));
     this.selectCanonicalType.set_Name("selectCanonicalType");
     this.selectCanonicalType.set_Size(new System.Drawing.Size(0x19d, 0x15));
     this.selectCanonicalType.set_Sorted(true);
     this.selectCanonicalType.set_TabIndex(2);
     this.nudYearEnd.set_Anchor(System.Windows.Forms.AnchorStyles.Right | System.Windows.Forms.AnchorStyles.Top);
     this.nudYearEnd.set_Location(new System.Drawing.Point(0x30f, 0x34));
     int[] numArray12 = new int[4];
     numArray12[0] = 0x270f;
     this.nudYearEnd.set_Maximum(new decimal(numArray12));
     int[] numArray13 = new int[4];
     numArray13[0] = 0x6d9;
     this.nudYearEnd.set_Minimum(new decimal(numArray13));
     this.nudYearEnd.set_Name("nudYearEnd");
     this.nudYearEnd.set_Size(new System.Drawing.Size(0x33, 20));
     this.nudYearEnd.set_TabIndex(9);
     int[] numArray14 = new int[4];
     numArray14[0] = 0x7da;
     this.nudYearEnd.set_Value(new decimal(numArray14));
     this.lblYearEnd.set_Anchor(System.Windows.Forms.AnchorStyles.Right | System.Windows.Forms.AnchorStyles.Top);
     this.lblYearEnd.set_AutoSize(true);
     this.lblYearEnd.set_Location(new System.Drawing.Point(0x2f6, 0x36));
     this.lblYearEnd.set_Name("lblYearEnd");
     this.lblYearEnd.set_Size(new System.Drawing.Size(0x13, 13));
     this.lblYearEnd.set_TabIndex(0x2c);
     this.lblYearEnd.set_Text("до");
     this.nudYearBegin.set_Anchor(System.Windows.Forms.AnchorStyles.Right | System.Windows.Forms.AnchorStyles.Top);
     this.nudYearBegin.set_Location(new System.Drawing.Point(0x2bd, 0x34));
     int[] numArray15 = new int[4];
     numArray15[0] = 0x270f;
     this.nudYearBegin.set_Maximum(new decimal(numArray15));
     int[] numArray16 = new int[4];
     numArray16[0] = 0x6d9;
     this.nudYearBegin.set_Minimum(new decimal(numArray16));
     this.nudYearBegin.set_Name("nudYearBegin");
     this.nudYearBegin.set_Size(new System.Drawing.Size(0x33, 20));
     this.nudYearBegin.set_TabIndex(8);
     int[] numArray17 = new int[4];
     numArray17[0] = 0x7cb;
     this.nudYearBegin.set_Value(new decimal(numArray17));
     this.lblYearBegin.set_Anchor(System.Windows.Forms.AnchorStyles.Right | System.Windows.Forms.AnchorStyles.Top);
     this.lblYearBegin.set_AutoSize(true);
     this.lblYearBegin.set_Location(new System.Drawing.Point(0x2aa, 0x36));
     this.lblYearBegin.set_Name("lblYearBegin");
     this.lblYearBegin.set_Size(new System.Drawing.Size(0x12, 13));
     this.lblYearBegin.set_TabIndex(0x2a);
     this.lblYearBegin.set_Text("от");
     this.cbxYear.set_Anchor(System.Windows.Forms.AnchorStyles.Right | System.Windows.Forms.AnchorStyles.Top);
     this.cbxYear.set_AutoSize(true);
     this.cbxYear.set_Location(new System.Drawing.Point(560, 0x35));
     this.cbxYear.set_Name("cbxYear");
     this.cbxYear.set_Size(new System.Drawing.Size(100, 0x11));
     this.cbxYear.set_TabIndex(7);
     this.cbxYear.set_Text("Год постройки");
     this.cbxYear.set_UseVisualStyleBackColor(true);
     this.cbxYear.add_CheckedChanged(new System.EventHandler(this.cbxYear_CheckedChanged));
     this.cbxFloor.set_Anchor(System.Windows.Forms.AnchorStyles.Right | System.Windows.Forms.AnchorStyles.Top);
     this.cbxFloor.set_AutoSize(true);
     this.cbxFloor.set_Location(new System.Drawing.Point(560, 0x17));
     this.cbxFloor.set_Name("cbxFloor");
     this.cbxFloor.set_Size(new System.Drawing.Size(0x7d, 0x11));
     this.cbxFloor.set_TabIndex(4);
     this.cbxFloor.set_Text("Количество этажей");
     this.cbxFloor.set_UseVisualStyleBackColor(true);
     this.cbxFloor.add_CheckedChanged(new System.EventHandler(this.cbxFloor_CheckedChanged));
     this.nudFloorEnd.set_Anchor(System.Windows.Forms.AnchorStyles.Right | System.Windows.Forms.AnchorStyles.Top);
     this.nudFloorEnd.set_Location(new System.Drawing.Point(0x30f, 0x16));
     int[] numArray18 = new int[4];
     numArray18[0] = 0x63;
     this.nudFloorEnd.set_Maximum(new decimal(numArray18));
     int[] numArray19 = new int[4];
     numArray19[0] = 1;
     this.nudFloorEnd.set_Minimum(new decimal(numArray19));
     this.nudFloorEnd.set_Name("nudFloorEnd");
     this.nudFloorEnd.set_Size(new System.Drawing.Size(0x33, 20));
     this.nudFloorEnd.set_TabIndex(6);
     int[] numArray20 = new int[4];
     numArray20[0] = 9;
     this.nudFloorEnd.set_Value(new decimal(numArray20));
     this.lblFloorEnd.set_Anchor(System.Windows.Forms.AnchorStyles.Right | System.Windows.Forms.AnchorStyles.Top);
     this.lblFloorEnd.set_AutoSize(true);
     this.lblFloorEnd.set_Location(new System.Drawing.Point(0x2f6, 0x18));
     this.lblFloorEnd.set_Name("lblFloorEnd");
     this.lblFloorEnd.set_Size(new System.Drawing.Size(0x13, 13));
     this.lblFloorEnd.set_TabIndex(0x26);
     this.lblFloorEnd.set_Text("до");
     this.nudFloorBegin.set_Anchor(System.Windows.Forms.AnchorStyles.Right | System.Windows.Forms.AnchorStyles.Top);
     this.nudFloorBegin.set_Location(new System.Drawing.Point(0x2bd, 0x16));
     int[] numArray21 = new int[4];
     numArray21[0] = 0x63;
     this.nudFloorBegin.set_Maximum(new decimal(numArray21));
     int[] numArray22 = new int[4];
     numArray22[0] = 1;
     this.nudFloorBegin.set_Minimum(new decimal(numArray22));
     this.nudFloorBegin.set_Name("nudFloorBegin");
     this.nudFloorBegin.set_Size(new System.Drawing.Size(0x33, 20));
     this.nudFloorBegin.set_TabIndex(5);
     int[] numArray23 = new int[4];
     numArray23[0] = 1;
     this.nudFloorBegin.set_Value(new decimal(numArray23));
     this.lblFloorBegin.set_Anchor(System.Windows.Forms.AnchorStyles.Right | System.Windows.Forms.AnchorStyles.Top);
     this.lblFloorBegin.set_AutoSize(true);
     this.lblFloorBegin.set_Location(new System.Drawing.Point(0x2aa, 0x18));
     this.lblFloorBegin.set_Name("lblFloorBegin");
     this.lblFloorBegin.set_Size(new System.Drawing.Size(0x12, 13));
     this.lblFloorBegin.set_TabIndex(0x24);
     this.lblFloorBegin.set_Text("от");
     this.selectAddresses.set_Anchor(System.Windows.Forms.AnchorStyles.Right | System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Top);
     this.selectAddresses.IsByUser = false;
     this.selectAddresses.set_Location(new System.Drawing.Point(0x80, 0x74));
     this.selectAddresses.set_Name("selectAddresses");
     area2.AreaGroupId = 0L;
     area2.AreaGroupName = null;
     area2.Id = 0L;
     area2.IsDeleted = false;
     area2.IsDirty = false;
     area2.Name = "";
     area2.ObjectWithIdType = null;
     area2.StatusTemporary = 0;
     this.selectAddresses.SelectedArea = area2;
     this.selectAddresses.set_Size(new System.Drawing.Size(0x19d, 20));
     this.selectAddresses.set_TabIndex(3);
     this.bFind.set_Anchor(System.Windows.Forms.AnchorStyles.Right | System.Windows.Forms.AnchorStyles.Top);
     this.bFind.set_Image(Resources.SEARCH);
     this.bFind.set_ImageAlign(System.Drawing.ContentAlignment.MiddleLeft);
     this.bFind.set_Location(new System.Drawing.Point(0x35a, 0x13));
     this.bFind.set_Name("bFind");
     this.bFind.set_Size(new System.Drawing.Size(0x60, 0x33));
     this.bFind.set_TabIndex(12);
     this.bFind.set_Text("Поиск");
     this.bFind.set_TextAlign(System.Drawing.ContentAlignment.MiddleRight);
     this.bFind.set_UseVisualStyleBackColor(true);
     this.bFind.add_Click(new System.EventHandler(this.bFind_Click));
     this.label6.set_AutoSize(true);
     this.label6.set_Location(new System.Drawing.Point(12, 0x74));
     this.label6.set_Name("label6");
     this.label6.set_Size(new System.Drawing.Size(0x2c, 13));
     this.label6.set_TabIndex(0x1f);
     this.label6.set_Text("Адреса");
     this.label3.set_AutoSize(true);
     this.label3.set_Location(new System.Drawing.Point(12, 0x18));
     this.label3.set_Name("label3");
     this.label3.set_Size(new System.Drawing.Size(0x3e, 13));
     this.label3.set_TabIndex(0x1a);
     this.label3.set_Text("Тип услуги");
     this.cbxServiceType.set_Anchor(System.Windows.Forms.AnchorStyles.Right | System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Top);
     this.cbxServiceType.set_AutoCompleteMode(System.Windows.Forms.AutoCompleteMode.SuggestAppend);
     this.cbxServiceType.set_AutoCompleteSource(System.Windows.Forms.AutoCompleteSource.CustomSource);
     this.cbxServiceType.set_DataSource(this.bsServiceTypes);
     this.cbxServiceType.set_DisplayMember("ShortName");
     this.cbxServiceType.set_FormattingEnabled(true);
     this.cbxServiceType.set_Location(new System.Drawing.Point(0x80, 0x13));
     this.cbxServiceType.set_Name("cbxServiceType");
     this.cbxServiceType.set_Size(new System.Drawing.Size(0x19d, 0x15));
     this.cbxServiceType.set_TabIndex(1);
     this.cbxServiceType.add_SelectedIndexChanged(new System.EventHandler(this.cbxServiceType_SelectedIndexChanged));
     this.bsServiceTypes.set_DataSource(typeof(ServiceType));
     this.houseServiceTariffAddView.set_Dock(System.Windows.Forms.DockStyle.Fill);
     this.houseServiceTariffAddView.set_Location(new System.Drawing.Point(0, 0));
     this.houseServiceTariffAddView.set_Name("houseServiceTariffAddView");
     this.houseServiceTariffAddView.set_Size(new System.Drawing.Size(960, 0x1a5));
     this.houseServiceTariffAddView.set_TabIndex(10);
     this.houseServiceTariffAddView.EditPerformed += new System.EventHandler(this.houseServiceTariffAddView_EditPerformed);
     this.btnSave.set_Anchor(System.Windows.Forms.AnchorStyles.Right | System.Windows.Forms.AnchorStyles.Top);
     this.btnSave.set_Location(new System.Drawing.Point(0x349, 12));
     this.btnSave.set_Name("btnSave");
     this.btnSave.set_Size(new System.Drawing.Size(0x6f, 0x20));
     this.btnSave.set_TabIndex(15);
     this.btnSave.set_Text("Сохранить");
     this.btnSave.set_UseVisualStyleBackColor(true);
     this.btnSave.add_Click(new System.EventHandler(this.btnSave_Click));
     this.dbxTariffDate.set_Anchor(System.Windows.Forms.AnchorStyles.Right | System.Windows.Forms.AnchorStyles.Top);
     this.dbxTariffDate.AttachToPeriod = false;
     this.dbxTariffDate.AttachToPeriodEnd = false;
     this.dbxTariffDate.set_Location(new System.Drawing.Point(0x2c8, 0x13));
     this.dbxTariffDate.set_Mask("00/00/0000");
     this.dbxTariffDate.set_Name("dbxTariffDate");
     this.dbxTariffDate.set_Size(new System.Drawing.Size(100, 20));
     this.dbxTariffDate.set_TabIndex(14);
     this.dbxTariffDate.DateChanged += new DateChangedHandler(this.dbxTariffDate_DateChanged);
     this.label9.set_Anchor(System.Windows.Forms.AnchorStyles.Right | System.Windows.Forms.AnchorStyles.Top);
     this.label9.set_AutoSize(true);
     this.label9.set_Location(new System.Drawing.Point(0x253, 0x16));
     this.label9.set_Name("label9");
     this.label9.set_Size(new System.Drawing.Size(0x6f, 13));
     this.label9.set_TabIndex(0x1b);
     this.label9.set_Text("Дата нового тарифа");
     this.label1.set_AutoSize(true);
     this.label1.set_Location(new System.Drawing.Point(7, 0x16));
     this.label1.set_Name("label1");
     this.label1.set_Size(new System.Drawing.Size(0x3a, 13));
     this.label1.set_TabIndex(0x1a);
     this.label1.set_Text("Документ");
     this.selectOrgDocument.set_Anchor(System.Windows.Forms.AnchorStyles.Right | System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Top);
     this.selectOrgDocument.set_Location(new System.Drawing.Point(0x4a, 0x13));
     this.selectOrgDocument.set_Name("selectOrgDocument");
     this.selectOrgDocument.set_Size(new System.Drawing.Size(0x203, 20));
     this.selectOrgDocument.set_TabIndex(13);
     this.selectOrgDocument.OnOrgDocumentSelected += new OrgDocumentHandler(this.selectOrgDocument_OnOrgDocumentSelected);
     this.statusStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.statsLabel });
     this.statusStrip.set_Location(new System.Drawing.Point(0, 0x27d));
     this.statusStrip.set_Name("statusStrip");
     this.statusStrip.set_Size(new System.Drawing.Size(960, 0x16));
     this.statusStrip.set_TabIndex(2);
     this.statsLabel.set_Name("statsLabel");
     this.statsLabel.set_Size(new System.Drawing.Size(0, 0x11));
     base.set_AutoScaleDimensions(new System.Drawing.SizeF(6f, 13f));
     base.set_AutoScaleMode(System.Windows.Forms.AutoScaleMode.Font);
     base.set_ClientSize(new System.Drawing.Size(960, 0x293));
     base.Controls.Add(this.splitContainer1);
     base.Controls.Add(this.statusStrip);
     base.set_Name("HouseServiceTariffMultipleAddForm");
     base.set_StartPosition(System.Windows.Forms.FormStartPosition.CenterScreen);
     this.set_Text("Групповое добавление тарифов на дома");
     base.set_WindowState(System.Windows.Forms.FormWindowState.Maximized);
     base.add_Load(new System.EventHandler(this.HouseServiceTariffMultipleAddForm_Load));
     this.splitContainer1.Panel1.ResumeLayout(false);
     this.splitContainer1.Panel2.ResumeLayout(false);
     this.splitContainer1.Panel2.PerformLayout();
     this.splitContainer1.ResumeLayout(false);
     this.splitContainer2.Panel1.ResumeLayout(false);
     this.splitContainer2.Panel2.ResumeLayout(false);
     this.splitContainer2.ResumeLayout(false);
     this.gbSearchParams.ResumeLayout(false);
     this.gbSearchParams.PerformLayout();
     this.nudYearEnd.EndInit();
     this.nudYearBegin.EndInit();
     this.nudFloorEnd.EndInit();
     this.nudFloorBegin.EndInit();
     this.bsServiceTypes.EndInit();
     this.statusStrip.ResumeLayout(false);
     this.statusStrip.PerformLayout();
     base.ResumeLayout(false);
     base.PerformLayout();
 }
Ejemplo n.º 27
0
 public void Fill(AIS.SN.Model.DomainObjects.House house)
 {
     this.House = house;
     this.bsHouseServiceTariffs.set_DataSource(this.House.GetHouseTariffs());
 }
Ejemplo n.º 28
0
 public void Fill(House hp)
 {
     this.m_House = hp;
     HouseArea area = Mappers.HouseAreaMapper.FindByHouseIdMaxDate(this.m_House.Id);
     this.m_HouseId = hp.Id;
     this.selectType.SelectedFasetItem = hp.IsNullId((long) hp.Type) ? FasetItem.Null : hp.GetFasetItem();
     this.tbNote.set_Text(hp.Note);
     this.numFloor.set_Value((decimal) hp.Floor);
     this.numEntrance.set_Value((decimal) hp.Entrance);
     this.numLift.set_Value((decimal) hp.Lift);
     this.numPassLift.set_Value((decimal) hp.PassLift);
     this.numCargoLift.set_Value((decimal) hp.CargoLift);
     this.selectWallType.SelectedFasetItem = hp.IsNullId((long) hp.WallType) ? FasetItem.Null : hp.GetWallType();
     this.selectCanonicalTypeId.SelectedFasetItem = hp.IsNullId((long) hp.CanonicalTypeId) ? FasetItem.Null : hp.GetCanonicalType();
     this.txtYear.set_Text((hp.YearBegin == 0) ? ((string) "") : ((int) hp.YearBegin).ToString());
     this.txtSeries.set_Text((hp.Series == 0) ? ((string) "") : ((int) hp.Series).ToString());
     this.selectFormControl.SelectedFasetItem = hp.IsNullId((long) hp.FormControl) ? FasetItem.Null : hp.GetFormControl();
     this.selectOwnershipType.SelectedFasetItem = hp.IsNullId((long) hp.OwnershipType) ? FasetItem.Null : hp.GetOwnerShipType();
     this.selectRoofType.SelectedFasetItem = hp.IsNullId((long) hp.RoofType) ? FasetItem.Null : hp.GetRoofType();
     this.selectBoroughs.SelectedFasetItem = hp.IsNullId((long) hp.BoroughId) ? FasetItem.Null : hp.GetBorough();
     this.numPercentWear.set_Value((decimal) hp.PercentWear);
     this.numFlat.set_Value((decimal) hp.Flat);
     this.numOneRoom.set_Value((decimal) hp.OneRoom);
     this.numTwoRoom.set_Value((decimal) hp.TwoRoom);
     this.numThreeRoom.set_Value((decimal) hp.ThreeRoom);
     this.numFourRoom.set_Value((decimal) hp.FourRoom);
     this.numFiveRoom.set_Value((decimal) hp.FiveRoom);
     this.numFlatWithGarbageChute.set_Value((decimal) hp.FlatWithGarbageChute);
     this.txtYearPassport.set_Text(((int) hp.YearPassport).ToString());
     this.tbTotalSquare.set_Text(area.Total.ToString());
     this.tbLivingSquare.set_Text(area.Living.ToString());
     this.tbHeatingSquare.set_Text(area.Heating.ToString());
     this.tbTotalSquareMKD.set_Text(area.TotalMkd.ToString());
     this.tbFloorArea.set_Text(area.Floor.ToString());
     this.tbTotalSquareOI.set_Text(area.TotalOi.ToString());
     this.tbLivingSquareMKD.set_Text(area.LivingMkd.ToString());
     this.numTotalVolume.set_Value(0M);
     this.tbxSubProvider.set_Text(hp.SubProvider);
     this.tbxHouseChief.set_Text(hp.HouseChief);
     this.rbPrintYes.set_Checked((hp.PrintServices == 0) ? ((bool) false) : ((bool) true));
     this.rbPrintNo.set_Checked(!this.rbPrintYes.get_Checked());
     if (hp.OnDate != System.DateTime.MinValue)
     {
         this.dtbOnDate.Value = hp.OnDate;
     }
     this.selectFoundationType.SelectedFasetItem = hp.IsNullId((long) hp.FoundationType) ? FasetItem.Null : hp.GetFoundationType();
     this.selectOverlapType.SelectedFasetItem = hp.IsNullId((long) hp.OverlapType) ? FasetItem.Null : hp.GetOverlapType();
     this.cbDomKom.set_Checked(hp.DomKom);
     this.selectRaionSuda.SelectedFasetItem = hp.IsNullId((long) hp.Sud) ? FasetItem.Null : hp.GetSud();
     this.tbNumberSudUch.set_Text(hp.SudUc);
     this.tbDomKomTarif.set_Text(((double) hp.DomKomTarif).ToString());
     this.numMusorCount.set_Value((decimal) hp.MusorCount);
     this.tbPassportNum.set_Text(((int) hp.PassportNum).ToString());
     this.tbKapRemontYear.set_Text(((int) hp.KapRemontYear).ToString());
     this.selectTerritorialManagement.SelectedFasetItem = hp.IsNullId((long) hp.TerritorialManagement) ? FasetItem.Null : hp.GetTerritorialManagement();
 }
Ejemplo n.º 29
0
 public static ObjectList<HouseServiceSeason> FindByServiceAndHouse(ServiceOld serviceOld, House house)
 {
     return Mappers.HouseServiceSeasonMapper.FindByServiceIdAndHouseId(serviceOld.Id, house.Id);
 }
Ejemplo n.º 30
0
 public House GetHouse(House hp)
 {
     hp.Id = this.m_HouseId;
     hp.Type = this.selectType.SelectedFasetItem.Id;
     hp.Floor = System.Convert.ToInt32(this.numFloor.Value);
     hp.Entrance = System.Convert.ToInt32(this.numEntrance.Value);
     hp.Lift = System.Convert.ToInt32(this.numLift.Value);
     hp.PassLift = System.Convert.ToInt32(this.numPassLift.Value);
     hp.CargoLift = System.Convert.ToInt32(this.numCargoLift.Value);
     hp.WallType = this.selectWallType.SelectedFasetItem.Id;
     hp.CanonicalTypeId = this.selectCanonicalTypeId.SelectedFasetItem.Id;
     hp.YearBegin = (this.txtYear.get_Text() == "") ? ((int) 0) : System.Convert.ToInt32(this.txtYear.get_Text());
     hp.Series = (this.txtSeries.get_Text() == "") ? ((int) 0) : System.Convert.ToInt32(this.txtSeries.get_Text());
     hp.FormControl = this.selectFormControl.SelectedFasetItem.Id;
     hp.OwnershipType = this.selectOwnershipType.SelectedFasetItem.Id;
     hp.RoofType = this.selectRoofType.SelectedFasetItem.Id;
     hp.BoroughId = this.selectBoroughs.SelectedFasetItem.Id;
     hp.Note = this.tbNote.get_Text().Trim();
     hp.PercentWear = System.Convert.ToInt32(this.numPercentWear.Value);
     hp.Flat = System.Convert.ToInt32(this.numFlat.Value);
     hp.OneRoom = System.Convert.ToInt32(this.numOneRoom.Value);
     hp.TwoRoom = System.Convert.ToInt32(this.numTwoRoom.Value);
     hp.ThreeRoom = System.Convert.ToInt32(this.numThreeRoom.Value);
     hp.FourRoom = System.Convert.ToInt32(this.numFourRoom.Value);
     hp.FiveRoom = System.Convert.ToInt32(this.numFiveRoom.Value);
     hp.FlatWithGarbageChute = System.Convert.ToInt32(this.numFlatWithGarbageChute.Value);
     hp.YearPassport = (this.txtYearPassport.get_Text() == "") ? ((int) 0) : System.Convert.ToInt32(this.txtYearPassport.get_Text());
     hp.TotalStructureVolume = this.numTotalVolume.Value;
     hp.TotalArea = System.Convert.ToDecimal(this.tbTotalSquare.get_Text());
     hp.LivingSquare = System.Convert.ToDecimal(this.tbLivingSquare.get_Text());
     hp.FiredArea = System.Convert.ToDecimal(this.tbHeatingSquare.get_Text());
     hp.FloorArea = System.Convert.ToDecimal(this.tbFloorArea.get_Text());
     hp.SubProvider = this.tbxSubProvider.get_Text().Trim();
     hp.HouseChief = this.tbxHouseChief.get_Text().Trim();
     hp.PrintServices = this.rbPrintYes.get_Checked() ? ((int) 1) : ((int) 0);
     if (this.dtbOnDate != null)
     {
         hp.OnDate = this.dtbOnDate.Value;
     }
     hp.FoundationType = this.selectFoundationType.SelectedFasetItem.Id;
     hp.OverlapType = this.selectOverlapType.SelectedFasetItem.Id;
     hp.DomKom = this.cbDomKom.get_Checked();
     hp.Sud = this.selectRaionSuda.SelectedFasetItem.Id;
     hp.SudUc = this.tbNumberSudUch.get_Text();
     hp.DomKomTarif = (this.tbDomKomTarif.get_Text() == "") ? ((double) 0.0) : System.Convert.ToDouble(this.tbDomKomTarif.get_Text());
     hp.MusorCount = System.Convert.ToInt32(this.numMusorCount.Value);
     hp.PassportNum = (this.tbPassportNum.get_Text() == "") ? ((int) 0) : System.Convert.ToInt32(this.tbPassportNum.get_Text());
     hp.KapRemontYear = (this.tbKapRemontYear.get_Text() == "") ? ((int) 0) : System.Convert.ToInt32(this.tbKapRemontYear.get_Text());
     hp.TerritorialManagement = this.selectTerritorialManagement.SelectedFasetItem.Id;
     hp.TotalAreaMkd = System.Convert.ToDecimal(this.tbTotalSquareMKD.get_Text());
     hp.TotalAreaOi = System.Convert.ToDecimal(this.tbTotalSquareOI.get_Text());
     hp.TotalAreaLivingNonLivingMkd = System.Convert.ToDecimal(this.tbLivingSquareMKD.get_Text());
     return hp;
 }