Esempio n. 1
0
    public void Toogle(int opcion)
    {
        switch (opcion)
        {
        case 0:
            LDC.SetActive(T_LDC.isOn);
            break;

        case 1:
            VM.SetActive(T_VM.isOn);
            break;

        case 2:
            BHX.SetActive(T_BHX.isOn);
            break;

        case 3:
            BHY.SetActive(T_BHY.isOn);
            break;

        case 4:
            BHZ.SetActive(T_BHZ.isOn);
            break;

        case 5:
            BM.SetActive(T_BM.isOn);
            break;

        case 6:
            MR.SetActive(T_MR.isOn);
            break;

        case 7:
            EDT.SetActive(T_EDT.isOn);
            break;

        case 8:
            CuerpoGO.SetActive(T_Cuerpo.isOn);
            break;
        }
    }
Esempio n. 2
0
        /// <summary>
        /// Adds a new document encapsulation (BDT/EDT tags) to the end of the print file. Will automatically handle nesting if print file tags exist
        /// </summary>
        /// <param name="docName">The optional 8 character name of the document</param>
        /// <returns>The resulting document's container</returns>
        public Container AddDocument(string docName = "")
        {
            Container newContainer  = null;
            int       indexToInsert = Fields.Count;

            // If BPF/EPF tags exist, make sure the document goes inside them
            if (Fields.Last() is EPF)
            {
                indexToInsert--;
            }

            // Add the only two required fields for a document - BDT and EDT
            BDT newBDT = new BDT(docName);
            EDT newEDT = new EDT(docName);

            AddFields(new List <StructuredField>()
            {
                newBDT, newEDT
            }, indexToInsert);

            // Set and return the new container
            newContainer = newBDT.LowestLevelContainer;
            return(newContainer);
        }
    protected void Btn_Report_Click(object sender, EventArgs e)
    {
        string RptName = "", RecFor = "";

        EDT = Session["EntryDate"].ToString();


        string BKCD = RS.FnBl_GetBANKCode(RS);

        if (BKCD == "1009")
        {
            RptName = "RptPendingRec_1009.rdlc";
        }
        else
        {
            RptName = "RptPendingRec.rdlc";
        }

        string redirectURL = "FrmReportViewer.aspx?FL=Report&BRCD=" + ddlBrCode.SelectedValue.ToString() + "&ASONDATE=" + EDT.ToString() + "&UID=" + Session["UserName"].ToString() + "&FMM=" + TxtFMM.Text + "&FYY=" + TxtFYYYY.Text + "&TMM=" + TxtTMM.Text + "&TYY=" + TxtTYYYY.Text + "&rptname=" + RptName + "";

        ScriptManager.RegisterStartupScript(Page, Page.GetType(), "popup", "window.open('" + redirectURL + "','_blank')", true);
    }
Esempio n. 4
0
    protected void Btn_Report_Click(object sender, EventArgs e)
    {
        try
        {
            string RptName = "", RecFor = "";
            EDT = Session["EntryDate"].ToString();


            string BKCD = RS.FnBl_GetBANKCode(RS);
            if (BKCD == "1009")
            {
                RptName = "RptPTRegister_1009.rdlc";
            }
            else
            {
                RptName = "RptPTRegister.rdlc";
            }

            string redirectURL = "FrmReportViewer.aspx?FL=Report&BRCD=" + ddlBrCode.SelectedValue.ToString() + "&BANKCD=" + ViewState["BANKCODE"].ToString() + "&ASONDATE=" + EDT.ToString() + "&UID=" + Session["UserName"].ToString() + "&MM=" + TxtMM.Text + "&YY=" + TxtYYYY.Text + "&Div=" + DdlRecDiv.SelectedValue.ToString() + "&Dep=" + DdlRecDept.SelectedValue.ToString() + "&rptname=" + RptName + "";
            ScriptManager.RegisterStartupScript(Page, Page.GetType(), "popup", "window.open('" + redirectURL + "','_blank')", true);
        }
        catch (Exception Ex)
        {
            ExceptionLogging.SendErrorToText(Ex);
        }
    }
    protected void GrdSumDetails_SelectedIndexChanging(object sender, GridViewSelectEventArgs e)
    {
        try
        {
            string      RptType = "", BrCode = "", RecDiv = "", RecCode = "", Schoolname = "", RptName = "", RecFor = "";
            GridViewRow row = GrdSumDetails.Rows[e.NewSelectedIndex];


            Label LRecCode    = (Label)row.FindControl("LblRecDept");
            Label LRecDiv     = (Label)row.FindControl("LblRecDiv");
            Label LSchoolName = (Label)row.FindControl("LblName");

            RecCode    = LRecCode.Text;
            RecDiv     = LRecDiv.Text;
            Schoolname = LSchoolName.Text;

            BrCode  = Session["BRCD"].ToString();
            RptType = "S";
            EDT     = Session["EntryDate"].ToString();
            if (ViewState["BANKCODE"].ToString() == "1009")
            {
                RptName = "RptRecoveryStatement_1009.rdlc";
            }
            if (ViewState["BANKCODE"].ToString() == "1010")
            {
                RptName = "RptRecoveryStatement_1010.rdlc";
            }
            else
            {
                RptName = "RptRecoveryStatement.rdlc";
            }


            RecFor = "Div- " + RecDiv + " ( " + RecCode + " - " + Schoolname + " ) ";

            string redirectURL = "FrmRecRView.aspx?FL=" + RptType.ToString() + "&BRCD=" + BrCode.ToString() + "&ASONDATE=" + EDT.ToString() + "&RECDIV=" + RecDiv.ToString() + "&RECCODE=" + RecCode.ToString() + "&UID=" + Session["UserName"].ToString() + "&MM=" + TxtMM.Text + "&YY=" + TxtYYYY.Text + "&RECFOR=" + RecFor.ToString() + "&rptname=" + RptName + "";
            ScriptManager.RegisterStartupScript(Page, Page.GetType(), "popup", "window.open('" + redirectURL + "','_blank')", true);
        }
        catch (Exception Ex)
        {
            ExceptionLogging.SendErrorToText(Ex);
        }
    }
Esempio n. 6
0
    protected void Btn_Report_Click(object sender, EventArgs e)
    {
        try
        {
            EDT = DateSet();
            string RptName = "", RecFor = "";

            string BKCD = RS.FnBl_GetBANKCode(RS);
            if (BKCD == "1009")
            {
                RptName = "RptRecoveryStatement_1009.rdlc";
            }
            else if (BKCD == "1010")
            {
                RptName = "RptRecoveryStatement_1010.rdlc";
            }
            else
            {
                RptName = "RptRecoveryStatement.rdlc";
            }

            RecFor = DdlRecDiv.SelectedItem.Text + " ( " + DdlRecDept.SelectedItem.Text + " ) ";

            string redirectURL = "FrmRecRView.aspx?FL=" + Rdb_ReportType.SelectedValue.ToString() + "&BRCD=" + ddlBrCode.SelectedValue.ToString() + "&ASONDATE=" + EDT.ToString() + "&RECDIV=" + DdlRecDiv.SelectedValue.ToString() + "&RECCODE=" + DdlRecDept.SelectedValue.ToString() + "&UID=" + Session["UserName"].ToString() + "&MM=" + TxtMM.Text + "&YY=" + TxtYYYY.Text + "&RECFOR=" + RecFor + "&rptname=" + RptName + "";
            ScriptManager.RegisterStartupScript(Page, Page.GetType(), "popup", "window.open('" + redirectURL + "','_blank')", true);
        }
        catch (Exception Ex)
        {
            ExceptionLogging.SendErrorToText(Ex);
        }
    }