Exemplo n.º 1
0
        private void LoadApplication(OpenHeaderTitles header)
        {
            this.header = new OpenHeaderTitles();

            /* Configura el encabezado */
            if (header.ParsedHeaderTitle != null)
            {
                this.header.HeaderTitle = header.ParsedHeaderTitle;
            }
            if (header.ParsedHeaderSubtitle1 != null)
            {
                this.header.HeaderSubtitle1 = header.ParsedHeaderSubtitle1;
            }
            if (header.ParsedHeaderSubtitle2 != null)
            {
                this.header.HeaderSubtitle2 = header.ParsedHeaderSubtitle2;
            }
            if (header.RowInformationHeader != null)
            {
                this.header.RowInformationHeader = header.RowInformationHeader;
            }

            this.Text = "LDSAC - Abono a capital";

            MotiveGenericDataPanel               = new RequestRegisterControl();
            MotiveGenericDataPanel.TagName       = "P_ABONO_A_CAPITAL_100364"; //"P_CHANGE_COND_DEBT"; //FinanBLConstants.CHANGE_COND_PACK_TYPE_TAG_NAME;
            MotiveGenericDataPanel.MotiveTagName = "M_ABONO_A_CAPITAL_100346"; //"M_DEBT_NEGOTIATION"; //FinanBLConstants.CHANGE_COND_PROD_MOTI_TAG_NAME;
            /*Valores quemados de prueba*/

            this._subscriptionId = this.GetSuscProd(Convert.ToInt64(this._productId));
            this.MotiveGenericDataPanel.SubscriptionId = this._subscriptionId;

            SelectFinanPanel             = new SelectFinanPanel();
            SelectFinanPanel.ProgramName = "LDSAC";
            SelectFinanPanel.txtSubscriptionId.TextBoxValue = Convert.ToString(this._subscriptionId);
            this.SelectFinanPanel.LoadDebtToChangeCond(
                this._subscriptionId.Value,
                _productId,
                this._financingId,
                this._deferredId);

            this.BaseEntity     = "CONTRACT";
            this.NodeLevelValue = "603046"; // nodeLevelValue;

            this.ChConditionsHeadPanel.Controls.Add(this.header);

            /* Define el panel donde se mostraran los paneles de navegación */
            this.chCondButtonsPanel.WorkPanel = this.chCondWorkPanel;

            /* Define el primer panel de navegación. Automáticamente se convierte en el panel a visualizar */
            this.chCondButtonsPanel.PanelCollection.Add(this.MotiveGenericDataPanel);

            /* Define segundo panel de navegación */
            this.chCondButtonsPanel.PanelCollection.Add(this.SelectFinanPanel);

            this.chCondButtonsPanel.SetMaxPanel(this.SelectFinanPanel);


            /* Visualiza el panel de trabajo actual */
            this.chCondButtonsPanel.ShowCurrentPanel();
        }
Exemplo n.º 2
0
 public LDSAC(Int64 productId, OpenHeaderTitles header)
 {
     InitializeComponent();
     this._productId = productId;
     this.LoadApplication(header);
 }