Exemple #1
0
 public void OpenFormView(object sender, FormViewEventArgs e)
 {
     FK_Wfp3     = e.ForeignKey;
     PK_Wfp3Spec = e.PrimaryKey;
     fvAg_WFP3_Specification.ChangeMode(e.ViewMode);
     BindAg_WFP3_Specification();
 }
 public void OpenFormView(object sender, FormViewEventArgs e)
 {
     FK_Wfp3        = e.ForeignKey;
     PK_Wfp3Payment = e.PrimaryKey;
     fvAg_WFP3_Payment.ChangeMode(e.ViewMode);
     BindAg_WFP3_Payment();
 }
Exemple #3
0
 public void OpenFormView(object sender, FormViewEventArgs e)
 {
     FK_Wfp3     = e.ForeignKey;
     PK_Wfp3Tech = e.PrimaryKey;
     fvAg_WFP3_Technician.ChangeMode(e.ViewMode);
     BindAg_WFP3_Technician();
 }
 public void OpenFormView(object sender, FormViewEventArgs e)
 {
     FK_ParticipantWAC      = e.ForeignKey;
     PK_ParticipantTraining = e.PrimaryKey;
     fvHR_WACEmployee_Training.ChangeMode(e.ViewMode);
     BindHR_WACEmployee_Training();
 }
 public void OpenFormView(object sender, FormViewEventArgs e)
 {
     FK_Wfp3            = e.ForeignKey;
     PK_Wfp3Encumbrance = e.PrimaryKey;
     fvAg_WFP3_Encumbrance.ChangeMode(e.ViewMode);
     BindAg_WFP3_Encumbrance();
 }
Exemple #6
0
 public void OpenFormView(object sender, FormViewEventArgs e)
 {
     FK_ParticipantWAC  = e.ForeignKey;
     PK_ParticipantEval = e.PrimaryKey;
     fvHR_WACEmployee_Evaluation.ChangeMode(e.ViewMode);
     BindHR_WACEmployee_Evaluation();
 }
Exemple #7
0
    protected void OnSubFormClose(object sender, FormViewEventArgs e)
    {
        string formName = e.FormType as string;

        switch (formName)
        {
        case "BMP":
            pnlSubPanels.FindControl("pnlWfp3Bmp").Visible = false;
            break;

        case "Bid":
            pnlSubPanels.FindControl("pnlWfp3Bid").Visible = false;
            break;

        case "Encumbrance":
            pnlSubPanels.FindControl("pnlWfp3Encumbrance").Visible = false;
            break;

        case "Invoice":
            pnlSubPanels.FindControl("pnlWfp3Invoice").Visible = false;
            break;

        case "Payment":
            pnlSubPanels.FindControl("pnlWfp3PaymentBMP").Visible = false;
            pnlSubPanels.FindControl("pnlWfp3Payment").Visible    = false;
            break;

        case "PaymentBMP":
            pnlSubPanels.FindControl("pnlWfp3PaymentBMP").Visible = e.ViewMode != FormViewMode.ReadOnly;
            LinkButton lb = new LinkButton();
            lb.ID = "lb_temp_Payment_view";
            lb.CommandArgument = e.ForeignKey.ToString();
            lbWFP3_Subtable_View_Click(lb, null);
            if (pnlSubPanels.FindControl("pnlWfp3PaymentBMP").Visible)
            {
                lb.ID = "lb_temp_PaymentBMP_view";
                lb.CommandArgument = e.PrimaryKey.ToString();
                lbWFP3_Subtable_View_Click(lb, null);
            }
            break;

        case "Modification":
            pnlSubPanels.FindControl("pnlWfp3Mod").Visible = false;
            break;

        case "Specification":
            pnlSubPanels.FindControl("pnlWfp3Spec").Visible = false;
            break;

        case "Technician":
            pnlSubPanels.FindControl("pnlWfp3Tech").Visible = false;
            break;

        default:
            break;
        }
        BindAg_WFP3();
        // upAg_WFP3.Update();
    }
Exemple #8
0
 public void OpenFormView(object sender, FormViewEventArgs e)
 {
     FK_ParticipantWAC      = e.ForeignKey;
     PK_ParticipantPosition = e.PrimaryKey;
     fvHR_WACEmployee_Position.ChangeMode(e.ViewMode);
     BindHR_WACEmployee_Position();
     Session["ActiveTabIndex"] = 5;
 }
Exemple #9
0
    public void OpenFormView(object sender, FormViewEventArgs e)
    {
        FK_FarmBusiness = e.ForeignKey;
        PK_FormWfp3     = e.PrimaryKey;
        fvAg_WFP3.ChangeMode(e.ViewMode);
        if (e.ViewMode == FormViewMode.Insert)
        {
            SubPanelsOff();
        }
        else
        {
            SubPanelsOn();
        }
        BindAg_WFP3();

        //  UC_DocumentArchive_A_WFP3.SetupViewer();
        //ShowModal(null, null);
        mpeAg_WFP3.Show();
        upAg_WFP3.Update();
    }
 //public void OpenGirdView(object sender, PrimaryKeyEventArgs p)
 //{
 //    PK_FarmBusiness = p.PrimaryKey;
 //    gvAg_WFP3_Bind();
 //}
 public void OnWFP3CloseClick(object sender, FormViewEventArgs e)
 {
     PK_FarmBusiness = e.PrimaryKey;
     gvAg_WFP3_Bind();
     upnl_WFP3.Update();
 }