Exemplo n.º 1
0
        protected void btnUpdate_Click(Object Sender, EventArgs e)
        {
            UpdatePDF(oTPM.GetPCRPath(intId));
            string strReason = "";

            for (int ii = 0; ii < chkPCRReason.Items.Count; ii++)
            {
                if (chkPCRReason.Items[ii].Selected == true)
                {
                    strReason += chkPCRReason.Items[ii].Value + ";";
                }
            }

            oTPM.UpdatePCR(intId, (chkScope.Checked ? 1 : 0), (chkSchedule.Checked ? 1 : 0), txtPCRScheduleDS.Text, txtPCRScheduleDE.Text, txtPCRSchedulePS.Text, txtPCRSchedulePE.Text, txtPCRScheduleES.Text, txtPCRScheduleEE.Text, txtPCRScheduleCS.Text, txtPCRScheduleCE.Text, (chkFinancial.Checked ? 1 : 0), txtPCRFinancialD.Text, txtPCRFinancialP.Text, txtPCRFinancialE.Text, txtPCRFinancialC.Text, strReason, txtScopeComments.Text, txtScheduleComments.Text, txtFinancialComments.Text);
            ClientScript.RegisterClientScriptBlock(typeof(Page), "redirect", "window.top.navigate(window.top.location);", true);
        }