コード例 #1
0
        protected void SRApproval_SelectedIndexChanged(object sender, EventArgs e)
        {
            string dateEntered;
            string timeEntered;
            Guid   ID;
            int    response, managerstatus = 0;
            string message;

            ID          = new Guid(GRNApproval.SelectedDataKey.Value.ToString());
            dateEntered = ((TextBox)GRNApproval.SelectedRow.FindControl("txtDateTimeRvwrSigned")).Text;
            response    = int.Parse(((DropDownList)GRNApproval.SelectedRow.FindControl("drpRvwrStatus")).SelectedValue);

            if (response == 1)
            {
                managerstatus = 2;
            }
            else if (response == 2)
            {
                managerstatus = 3;
            }

            grn.ID             = ID;
            grn.VerifiedDate   = DateTime.Parse(dateEntered);
            grn.VerifiedStatus = response;
            grn.Status         = managerstatus;
            grn.VerifyGRNs();
            populateGRV();
            lblApprovedmsg.Visible = true;
        }