Пример #1
0
        protected void lnklRegionalApproverItem_Click(object sender, EventArgs e)
        {
            LinkButton lnk = (LinkButton)sender;

            try
            {
                INCFORMAPPROVERLIST ApproverAction = SQMModelMgr.LookupINCFORMAPPROVERLIST(new PSsqmEntities(), Convert.ToDecimal(lnk.CommandArgument), "R");
                if (ApproverAction != null)
                {
                    hfApproverActionID.Value = ApproverAction.INCFORM_APPROVER_LIST_ID.ToString();
                    //ddlApprover.SelectedValue = ApproverAction.PERSON_ID.ToString();
                    ddlApproverType.SelectedValue = ApproverAction.TYPE;
                    txtDescription.Text           = ApproverAction.DESCRIPTION;
                    //ddlPriv.SelectedValue = ApproverAction.PRIV.ToString();
                    //ddlStep.SelectedValue = ApproverAction.STEP.ToString();
                    //txtDescriptionQuestion.Text = ApproverAction.DESCRIPTION_QUESTION;
                    btnDelete.Visible = true;
                }

                string script = "function f(){OpenApproverEditWindow(); Sys.Application.remove_load(f);}Sys.Application.add_load(f);";
                ScriptManager.RegisterStartupScript(Page, Page.GetType(), "key", script, true);
            }
            catch (Exception ex)
            {
            }
        }