protected void Page_Load(object sender, EventArgs e)
        {
            bool havePermission;

            if (ActionType == InvoiceActionType.Duplicate)
            {
                havePermission = TargetInvoice != null && CRMSecurity.CanAccessTo(TargetInvoice);
            }
            else
            {
                havePermission = TargetInvoice == null || CRMSecurity.CanEdit(TargetInvoice);
            }

            if (!havePermission)
            {
                Response.Redirect(PathProvider.StartURL() + "invoices.aspx");
            }

            RegisterClientScriptHelper.DataInvoicesActionView(Page, TargetInvoice);

            InitCountriesCombobox();

            InitActionButtons();

            RegisterScript();
        }