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);
 }