Ejemplo n.º 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                if (QS("id", 0) > 0) //edit
                {
                    sealRequestEntity = app.GetSealRequests(QS("Id", 0));
                    BindRequestData(sealRequestEntity);
                    hdID.Value = sealRequestEntity.ID.ToString();

                    // Check authorization
                    if (app.CheckUserHasRecords(UserInfo.ID, sealRequestEntity.ID, (int)WorkflowAction.Pending) ||
                        (sealRequestEntity.Status == RequestStatus.Draft && sealRequestEntity.RequestedBy == UserInfo.ID))    // Still a draft
                    {
                        divAction.Style["display"] = "inline";
                        BindDdlAction();
                    }
                }
            }
        }