public ServicePenaltiesAddForOrganizationForm(Organization organization)
     : this()
 {
     this.m_Organization = organization;
     this.set_Text(this.get_Text() + this.m_Organization.ShortName);
     this.set_Font(Manager.WindowFont);
 }
 public OrganizationCommissionAddChangeForm(OrganizationCommission organizationCommission)
     : this()
 {
     this.m_OrganizationCommission = organizationCommission;
     if (this.m_OrganizationCommission.IsNew)
     {
         this.set_Text("Создание комиссии");
         this.butOK.set_Text("Создать");
     }
     else
     {
         this.set_Text("Изменение комиссии");
         this.butOK.set_Text("Изменить");
     }
     Organization organization = new Organization {
         Id = this.m_OrganizationCommission.OrganizationId
     };
     this.selectOrganization.SelectedOrganization = organization;
     if (this.m_OrganizationCommission.FromDate != System.DateTime.MinValue)
     {
         this.datePeriod.DateBegin = this.m_OrganizationCommission.FromDate;
     }
     if (this.m_OrganizationCommission.ToDate != System.DateTime.MinValue)
     {
         this.datePeriod.DateEnd = this.m_OrganizationCommission.ToDate;
     }
     this.commUpValue.set_Value(this.m_OrganizationCommission.ValuePrecent);
     this.CommIncludValue.set_Value(this.m_OrganizationCommission.CommissionIncluding);
 }
Пример #3
0
 public void LoadPaymentSystems(Organization org)
 {
     if (org != null)
     {
         this.m_org = org;
         this.ReloadPaymentSystemAgents();
     }
 }
Пример #4
0
 public RemitteeServiceAddForm()
 {
     this.organization = new Organization();
     this.doc = new OrgDocument();
     this.m_serviceOld = new ServiceOld();
     this.InitializeComponent();
     base.get_DesignMode();
 }
Пример #5
0
 public AddBenefitServiceTypeForm(Organization organization)
     : this()
 {
     this.set_Text("Добавление групп льготных услуг");
     this.tbxOrganization.set_Text(organization.ShortName);
     this.bst = new BenefitServiceType();
     this.bst.Id = -1L;
     this.bst.OrgId = organization.Id;
 }
 public AddChangePaymentSystemAgentsForm(PayPaymentSystemAgent paymentSystemAgent)
 {
     this.m_PaymentSystemAgent = PayPaymentSystemAgent.Null;
     this.m_Organization = Organization.Null;
     this.InitializeComponent();
     this.m_PaymentSystemAgent = paymentSystemAgent ?? PayPaymentSystemAgent.Null;
     this.btnPerform.set_Text("Изменить");
     this.set_Text("Редактирование платёжного агента");
 }
 public AddChangePaymentSystemAgentsForm(Organization organization)
 {
     this.m_PaymentSystemAgent = PayPaymentSystemAgent.Null;
     this.m_Organization = Organization.Null;
     this.InitializeComponent();
     this.m_Organization = organization;
     this.btnPerform.set_Text("Добавить");
     this.set_Text("Добавление платёжного агента");
 }
 public ExternalProcessingWizardForm(ExtExternalProcessing processing, Organization org)
 {
     this.InitializeComponent();
     if (!base.get_DesignMode())
     {
         this.set_Font(Manager.WindowFont);
         this.Org = org;
         this.Processing = processing;
     }
 }
Пример #9
0
 public OrganizationsForm(Organization org, OrganizationHandler orgHandler, OrganizationsHandler orgsHandler)
 {
     this.InitializeComponent();
     this.orgHandler = orgHandler;
     this.orgsHandler = orgsHandler;
     if (org != null)
     {
         System.Collections.Generic.List<Organization> list = new System.Collections.Generic.List<Organization> {
             org
         };
         this.bsOrganizations.set_DataSource(list);
     }
 }
Пример #10
0
 public void InitOrganization(Organization org)
 {
     this.RefreshBindingSources();
     int index = this.orgsBindingSource.IndexOf(org);
     if (index == -1)
     {
         Messages.ShowWarning("Организация не является поставщиком");
         this.orgsBindingSource.set_Position(this.orgsBindingSource.IndexOf(Organization.Null));
     }
     else
     {
         this.orgsBindingSource.set_Position(index);
     }
 }
Пример #11
0
 public ProcessPaymentForm(Account account, string packNumber, string paymentOrderNumber, System.DateTime paymentOrderDate, Organization agent, string barcode, POSView posView, CashPaymentOrderType cashPaymentOrderType, int subService, long paymentOrderPackId)
 {
     this.InitializeComponent();
     if (!User.IsMemberOf(RightsEnum.АРМКассирОплатаСчетчики))
     {
         base.Controls.Remove(this.m_Tabs);
         base.Controls.Add(this.m_processPaymentView);
     }
     base.set_Width((int) ((int) (System.Windows.Forms.Screen.PrimaryScreen.WorkingArea.get_Width() * 0.7)));
     base.set_Height((int) ((int) (System.Windows.Forms.Screen.PrimaryScreen.WorkingArea.get_Height() * 0.8)));
     this.m_Account = account;
     this.set_Text(string.Concat((string[]) new string[] { this.m_Account.Number, "; ", this.m_Account.AddressName, "; ", this.m_Account.OwnerName }));
     this.m_processPaymentView.InitialiseProcessPaymentView(account, packNumber, paymentOrderNumber, paymentOrderDate, agent, barcode, posView, cashPaymentOrderType, subService, paymentOrderPackId);
 }
 public ChangeAdditionalServiceTariffForm(ObjectList<Service> services, System.Data.DataTable m_dtSerficeTariffType, Organization m_provider, Organization m_resource, Organization m_holder, ServiceType m_serviceType, bool m_isSeason, bool m_isOpenServicesForArea, Area m_area, System.Data.DataTable m_dtCanonicalProperties, bool m_isOpen, System.DateTime m_dateLastTariff, int m_houseYear)
 {
     this.m_Services = new ObjectList<Service>();
     this.dtSerficeTariffType = new System.Data.DataTable();
     this.InitializeComponent();
     this.m_Services = services;
     this.dtSerficeTariffType = m_dtSerficeTariffType;
     this.provider = m_provider;
     this.resource = m_resource;
     this.holder = m_holder;
     this.serviceType = m_serviceType;
     this.isSeason = m_isSeason;
     this.isOpenServicesForArea = m_isOpenServicesForArea;
     this.area = m_area;
     this.dtCanonicalProperties = m_dtCanonicalProperties;
     this.isOpen = m_isOpen;
     this.dateLastTariff = m_dateLastTariff;
     this.houseYear = m_houseYear;
 }
Пример #13
0
 public AddressTariffViewCollection Find(Organization org, ServiceTypeOld st)
 {
     if (org == null)
     {
         throw new System.ArgumentNullException("org", "Организация не может быть равной null");
     }
     if (st == null)
     {
         throw new System.ArgumentNullException("st", "Тип услуги не может быть равен null");
     }
     AddressTariffViewCollection views = new AddressTariffViewCollection();
     System.Data.SqlClient.SqlParameter[] parameters = new System.Data.SqlClient.SqlParameter[2];
     parameters[0] = new System.Data.SqlClient.SqlParameter("@orgId", System.Data.SqlDbType.BigInt);
     parameters[0].set_Value((long) org.Id);
     parameters[1] = new System.Data.SqlClient.SqlParameter("@srvTypeId", System.Data.SqlDbType.BigInt);
     parameters[1].set_Value((long) st.Id);
     foreach (System.Data.DataRow row in DALSql.ExecuteDataTable(" select \ta.adrId, sn.LocalAddress_ToString(a.adrId, 0) adr,\r\n\t\t\t\t\t\t\t\tsrvTarif.id tId,\r\n\t\t\t\t\t\t\t\tsrvTarif.rate,\r\n\t\t\t\t\t\t\t\tsrvTarif.srvId,\r\n\t\t\t\t\t\t\t\tsrvTarif.code,\r\n\t\t\t\t\t\t\t\tsrvTarif.shortName\r\n\t\t\t\t\t\tfrom\t(\tselect  s.id srvId,s.code,s.shortName,curSt.id,curSt.rate\r\n\t\t\t\t\t\t\t\t\tfrom\tsn.Organizations o,\r\n\t\t\t\t\t\t\t\t\t\t\tsn.Services s,\r\n\t\t\t\t\t\t\t\t\t\t\t(\tselect   st.*\r\n\t\t\t\t\t\t\t\t\t\t\t\tfrom\t sn.ServiceTariffs st,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t (select   serviceId,MAX(dateb) dateb\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t  from\t sn.ServiceTariffs\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t  group by serviceId\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t ) curSt\r\n\t\t\t\t\t\t\t\t\t\t\t\twhere\t st.serviceId=curSt.serviceId\r\n\t\t\t\t\t\t\t\t\t\t\t\tand\t\t st.dateb=curSt.dateb\r\n\t\t\t\t\t\t\t\t\t\t\t\tand\t\t st.id=(select MAX(id)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfrom\t sn.ServiceTariffs st1\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\twhere\t st1.serviceId=st.serviceId\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tand\t\t st1.dateb=st.dateb\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t\t) curSt\r\n\t\t\t\t\t\t\t\t\twhere\t(o.id=@orgId  or @orgId=0)\r\n\t\t\t\t\t\t\t\t\tand\t\ts.providerId=o.id\r\n\t\t\t\t\t\t\t\t\tand\t\t(s.typeId=@srvTypeId or @srvTypeId=0)\r\n\t\t\t\t\t\t\t\t\tand\t\tcurSt.serviceId=s.id\r\n\t\t\t\t\t\t\t\t) srvTarif\r\n\t\t\t\t\t\t\t\tinner join sn.AccountServices acs on (srvTarif.srvId = acs.id) and (acs.toDate is null)\r\n\t\t\t\t\t\t\t\tinner join sn.Accounts ac on acs.accountId = ac.id\r\n\t\t\t\t\t\t\t\tinner join sn.Apartments a on ac.apartmentId = a.id", parameters).Rows)
     {
         views.AddObject(this.Load(row));
     }
     return views;
 }
Пример #14
0
 public void SetOrganization(Organization org)
 {
     this.m_SelectOrganization.SelectedOrganization = org;
 }
Пример #15
0
 private void m_SelectOrganization_OnOrganizationSelected(Organization organization)
 {
     this.bsSynonyms.Clear();
 }
Пример #16
0
 protected override void ClearText(object sender, System.EventArgs e)
 {
     this.SelectedOrganizationOld = null;
     if (this.OnOrganizationSelected != null)
     {
         this.OnOrganizationSelected(null);
     }
 }
Пример #17
0
 public void Selected(Organization organization)
 {
     this.SelectedOrganizationOld = organization;
     if (this.OnOrganizationSelected != null)
     {
         this.OnOrganizationSelected(organization);
     }
 }
Пример #18
0
 public static ObjectWithId AddOrganization(DataTransferObject dto)
 {
     Organization organization = new Organization();
     organization.SaveChanges(dto);
     if (Organizations.FindById(organization.Id) == null)
     {
         Organizations.Add(organization);
     }
     return organization;
 }
Пример #19
0
            public OrganizationNode(Organization org, Organization provider)
            {
                this.m_provider = provider;
                switch (Manager.SortOrder)
                {
                    case ChiefSortOrders.ByName:
                        base.set_Text(org.ToString());
                        break;

                    case ChiefSortOrders.ByCode:
                        base.set_Text(org.CodeName);
                        break;
                }
                base.set_Tag(org);
                base.Nodes.Add("");
            }
Пример #20
0
 public static System.Collections.Generic.List<ServiceOld> FindByServiceProvider(Organization organization)
 {
     return Mappers.ServiceOldMapper.FindByServiceProvider(organization);
 }
Пример #21
0
 public static System.Collections.Generic.List<ServiceOld> FindByProviderAndType(Organization organization, ServiceTypeOld serviceType)
 {
     return Mappers.ServiceOldMapper.FindByProviderAndType(organization, serviceType);
 }
Пример #22
0
 public static ObjectList<ServiceOld> FindBy(ServiceTypeOld type, Organization provider, AIS.SN.Model.DomainObjects.CanonicalService canonical, Organization houseHolder, Organization resourceProvider, LocalAddress adr, System.DateTime fromDate)
 {
     return Mappers.ServiceOldMapper.FindBy(type.Id, provider.Id, canonical.Id, houseHolder.Id, resourceProvider.Id, adr.Id, fromDate);
 }
Пример #23
0
 public DocumentForm()
 {
     this.m_organization = new Organization();
     this.InitializeComponent();
 }
Пример #24
0
 private void selectOrganization_OnOrganizationSelected(Organization organization)
 {
     if (this.selectOrganization.SelectedOrganization != Organization.Null)
     {
         if (!this.selectOrganization.SelectedOrganization.IsPaymentAgent)
         {
             Messages.ShowMessage("Выбранная организация не является платёжным агентом.");
             this.selectOrganization.SelectedOrganization = Organization.Null;
             this.m_organization = null;
             this.bsDocument.set_DataSource(null);
         }
         else
         {
             this.m_organization = this.selectOrganization.SelectedOrganization;
             this.bsDocument.set_DataSource(SpDocumentService.FindByAgentId(this.m_organization));
         }
     }
 }
 public static ObjectList<AccountServiceTariffNormView> FindBy(Organization houseHolder, long serviceTypeId, long? canonicalTypeId, System.Collections.Generic.IList<LocalAddress> addresses, int? lowestFloor, int? highestFloor, int? startYear, int? endYear)
 {
     return Mappers.AccountServiceTariffNormMapper.FindBy(houseHolder, serviceTypeId, canonicalTypeId, addresses, lowestFloor, highestFloor, startYear, endYear);
 }
 public void ServicesTableUpdate(ObjectList<Service> services, bool loadNewRateColumn, System.Data.DataTable m_dtSerficeNormTypes, System.Data.DataTable m_dtSerficeNormTypesByProperty, Organization m_provider, Organization m_resource, Organization m_holder, ServiceType m_serviceType, bool m_isSeason, bool m_isOpenServicesForArea, Area m_area, System.Data.DataTable m_dtCanonicalProperties, bool m_isOpen, System.DateTime m_dateLastTariff, int m_houseYear)
 {
     this.bsServices.set_DataSource(services);
     this.dtServiceNormTypes.Rows.Clear();
     this.dtServiceNormTypesByProperty.Rows.Clear();
     this.CreatedColumnTempTables();
     if (loadNewRateColumn)
     {
         this.NewRateColumn.set_Visible(true);
         this.Selected.set_Visible(false);
         this.tsbFindLike.set_Visible(true);
         this.tsbSelectedAll.set_Visible(false);
         this.SelectedServiceNormType.set_Visible(false);
         this.SelectedServiceNormTypeByProperty.set_Visible(false);
         if ((m_dtSerficeNormTypesByProperty != null) && (m_dtSerficeNormTypesByProperty.Rows.get_Count() != 0))
         {
             this.dtServiceNormTypesByProperty = m_dtSerficeNormTypesByProperty;
         }
         if ((m_dtSerficeNormTypes != null) && (m_dtSerficeNormTypes.Columns.get_Count() != 0))
         {
             this.dtServiceNormTypes = m_dtSerficeNormTypes;
         }
     }
     else
     {
         this.NewRateColumn.set_Visible(false);
         this.Selected.set_Visible(true);
         this.SelectedServiceNormType.set_Visible(true);
         this.SelectedServiceNormTypeByProperty.set_Visible(true);
         this.tsbFindLike.set_Visible(false);
         this.NewValueApartmentProperty.set_Visible(false);
         this.NewValueNorm.set_Visible(false);
         this.dgvServices.set_SelectionMode(System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect);
         this.dgvServiceNormTypes.set_SelectionMode(System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect);
         this.dgvServiceNormTypesByProperties.set_SelectionMode(System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect);
         this.tsbSelectedAll.set_Visible(true);
         this.dtServiceNormTypesByPropertySave = m_dtSerficeNormTypesByProperty;
         this.dtServiceNormTypesSave = m_dtSerficeNormTypes;
         this.tsbFindByTypeService.set_Visible(false);
         this.houseYear = m_houseYear;
         this.arrangeColorinfForDGCSerivces();
     }
     this.provider = m_provider;
     this.resource = m_resource;
     this.holder = m_holder;
     this.serviceType = m_serviceType;
     this.isSeason = m_isSeason;
     this.isOpenServicesForArea = m_isOpenServicesForArea;
     this.area = m_area;
     this.dtCanonicalProperties = m_dtCanonicalProperties;
     this.isOpen = m_isOpen;
     this.dateLastTariff = m_dateLastTariff;
     this.dgvServices.Sort(this.dgvServices.Columns.get_Item("TypeName"), ListSortDirection.Ascending);
     this.dgvServices.Sort(this.dgvServices.Columns.get_Item("lastRateDataGridViewTextBoxColumn"), ListSortDirection.Descending);
     this.UpdateServiceNorm((this.bsServices.get_Current() as Service) ?? Service.Null, true);
 }
Пример #27
0
 public void ShowSelectedOrganization(string childrenYK, ObjectList<Organization> orgs, Organization m_provider)
 {
     this.provider = m_provider;
     System.Collections.Generic.List<Organization> list = new System.Collections.Generic.List<Organization>();
     foreach (Organization organization in orgs)
     {
         if ((organization.ToString() == childrenYK) && !list.Contains(organization))
         {
             list.Add(organization);
             break;
         }
     }
     foreach (Organization organization2 in list)
     {
         base.Nodes.Add(new OrganizationNode(organization2, m_provider));
     }
 }
 private void selectOrganizationOpen_OnOrganizationSelected(Organization organization)
 {
     Organization selectedOrganizationOld = this.selectOrganizationOpen.SelectedOrganizationOld;
     if (selectedOrganizationOld != null)
     {
         this.bsServices.set_DataSource(selectedOrganizationOld.GetServices());
     }
     else
     {
         this.bsServices.Clear();
     }
     this.bsServices.Add(Service.Null);
     this.bsServices.set_Position(this.bsServices.IndexOf(Service.Null));
 }
Пример #29
0
 public DocumentForm(Organization organization)
     : this()
 {
     this.m_organization = organization;
 }
Пример #30
0
 public void RefreshSelectedOrganizations()
 {
     this.m_Load = true;
     foreach (object obj2 in this.chlbOrgs.CheckedIndices)
     {
         this.chlbOrgs.SetItemChecked((int) ((int) obj2), false);
         this.m_CheckedOrganizations.set_Item(this.m_Organizations.IndexOf((Organization) this.chlbOrgs.Items.get_Item((int) ((int) obj2))), false);
     }
     if (this.m_SelectedOrganizations != null)
     {
         Organization[] organizationArray = new Organization[this.m_SelectedOrganizations.get_Count()];
         this.m_SelectedOrganizations.CopyTo(organizationArray, 0);
         Organization[] organizationArray2 = organizationArray;
         for (int i = 0; i < organizationArray2.Length; i = (int) (i + 1))
         {
             Organization organization = organizationArray2[i];
             if (this.organizationBindingSource.Contains(organization))
             {
                 this.chlbOrgs.SetItemChecked(this.chlbOrgs.Items.IndexOf(organization), true);
                 this.m_CheckedOrganizations.set_Item(this.m_Organizations.IndexOf(organization), true);
             }
             else
             {
                 this.m_SelectedOrganizations.Remove(organization);
             }
         }
     }
     else
     {
         this.m_SelectedOrganizations = new ObjectList<Organization>();
     }
     this.m_Load = false;
 }