Exemplo n.º 1
0
 protected void btnUpdate_Click(Object Sender, EventArgs e)
 {
     UpdatePDF(oTPM.GetCSRCPath(intId));
     if (Request.Form[hdnStatus.UniqueID] != "Pending")
     {
         oTPM.UpdateCSRC(intId, 0, 0);
         oTPM.UpdateCSRCDetail(intId, 1);
         oTPM.UpdateCSRCDetail(intId, 2);
         oTPM.ApproveCSRC(intId, 1, 0, intCSRCPage, intWorkloadManager, oVariable.DocumentsFolder() + oTPM.GetCSRCPath(intId));
     }
     else
     {
         oTPM.UpdateCSRC(intId, (chkDiscovery.Checked ? 1 : 0), (chkPlanning.Checked ? 1 : 0), (chkExecution.Checked ? 1 : 0), (chkClosing.Checked ? 1 : 0), txtCSRCSD.Text, txtCSRCED.Text, txtCSRCID.Text, txtCSRCExD.Text, txtCSRCHD.Text, txtCSRCSP.Text, txtCSRCEP.Text, txtCSRCIP.Text, txtCSRCExP.Text, txtCSRCHP.Text, txtCSRCSE.Text, txtCSRCEE.Text, txtCSRCIE.Text, txtCSRCExE.Text, txtCSRCHE.Text, txtCSRCSC.Text, txtCSRCEC.Text, txtCSRCIC.Text, txtCSRCExC.Text, txtCSRCHC.Text);
     }
     ClientScript.RegisterClientScriptBlock(typeof(Page), "redirect", "window.top.navigate(window.top.location);", true);
 }
Exemplo n.º 2
0
        protected void btnSubmit_Click(Object Sender, EventArgs e)
        {
            Button oButton     = (Button)Sender;
            int    intStep     = Int32.Parse(lblStep.Text);
            int    intDetailId = Int32.Parse(lblDetailId.Text);

            oTPM.UpdateCSRCDetail(intDetailId, Int32.Parse(oButton.CommandArgument), txtComments.Text);
            //oTPM.ApproveCSRC(intId, intStep + 1, Int32.Parse(oButton.CommandArgument), intCSRCPage, intWorkloadManager, strBCC);
            oTPM.ApproveCSRC(intId, intStep + 1, Int32.Parse(oButton.CommandArgument), intCSRCPage, intWorkloadManager, Request.PhysicalApplicationPath + oTPM.GetCSRCPath(intId));
            Response.Redirect(oPage.GetFullLink(intPage) + "?id=" + lblId.Text + "&action=done");
        }