示例#1
0
        protected void btnAddComments_Click(object sender, EventArgs e)
        {
            if (Page.IsValid)
            {
                try
                {
                    BCommon  objBCommon  = new BCommon();
                    BECommon objBECommon = new BECommon();
                    objBECommon.IntTransID     = Convert.ToInt64(AppSecurity.Decrypt(Request.QueryString["TransID"].ToString()));
                    objBECommon.IntUserID      = Convert.ToInt32(Session[EnumPageSessions.USERID].ToString());
                    objBECommon.StrComments    = txtComments.Text.ToString();
                    objBECommon.StrddlComments = getSelectFlag().ToString();
                    objBECommon.intAlertID     = Convert.ToInt32(ddlAlerts.SelectedValue.ToString());
                    objBCommon.BAddComments(objBECommon);
                    objBECommon      = null;
                    objBCommon       = null;
                    txtComments.Text = string.Empty;
                    gvComments.Rebind();
                }


                catch (Exception Ex)
                {
                    throw Ex;
                }
            }
        }
 protected void btnAddComments_Click(object sender, EventArgs e)
 {
     try
     {
         BCommon  objBCommon  = new BCommon();
         BECommon objBECommon = new BECommon();
         objBECommon.IntTransID  = Convert.ToInt64(AppSecurity.Decrypt(Session[BaseClass.EnumPageSessions.TransID].ToString()));
         objBECommon.IntUserID   = Convert.ToInt32(Session[BaseClass.EnumPageSessions.USERID].ToString());
         objBECommon.StrComments = txtComments.Text.ToString();
         //objBECommon.StrddlComments = getSelectFlag().ToString();
         objBECommon.StrddlComments = ddlFlags.SelectedValue.ToString();
         objBECommon.intAlertID     = Convert.ToInt32(ddlAlerts.SelectedValue.ToString());
         objBCommon.BAddComments(objBECommon);
         objBECommon      = null;
         objBECommon      = null;
         txtComments.Text = string.Empty;
         gvComments.Rebind();
         ddlFlags.SelectedValue = "-1";
         // txtComments.Visible = false;
         ddlAlerts.Items.Clear();
     }
     catch (Exception Ex)
     {
         throw Ex;
     }
 }
示例#3
0
        protected void SetComments(string strComments)
        {
            BCommon  objBCommon  = new BCommon();
            BECommon objBECommon = new BECommon();

            objBECommon.IntTransID  = Convert.ToInt64(AppSecurity.Decrypt(Request.QueryString["TransID"].ToString()));
            objBECommon.IntUserID   = Convert.ToInt32(Session[EnumPageSessions.USERID].ToString());
            objBECommon.StrComments = strComments;
            if (strComments == "Student identity-Matched")
            {
                objBECommon.StrddlComments = "1";
            }
            else
            {
                objBECommon.StrddlComments = "3";
            }

            objBCommon.BAddComments(objBECommon);
            objBECommon = null;
            objBCommon  = null;
        }
        //protected void btnReject_Click(object sender, EventArgs e)
        //{
        //    try
        //    {
        //        Response.Redirect("AutoProctorConfirmation.aspx?type=0&" + Request.QueryString.ToString(), false);
        //    }
        //    catch (Exception ex)
        //    {
        //        throw ex;
        //    }
        //}


        #region AddComments


        protected void btnAddComments_Click(object sender, EventArgs e)
        {
            try
            {
                BCommon  objBCommon  = new BCommon();
                BECommon objBECommon = new BECommon();
                objBECommon.IntTransID     = Convert.ToInt64(AppSecurity.Decrypt(Request.QueryString["TransID"].ToString()));
                objBECommon.IntUserID      = Convert.ToInt32(Session[BaseClass.EnumPageSessions.USERID].ToString());
                objBECommon.StrComments    = txtComments.Text.ToString();
                objBECommon.StrddlComments = ddlFlags.SelectedValue.ToString();
                objBECommon.intAlertID     = Convert.ToInt32(ddlAlerts.SelectedValue.ToString());
                string TimeChoosed = string.Empty;
                if (ddlHours.SelectedIndex != 0 && ddlHours.SelectedIndex != 1)
                {
                    TimeChoosed = ddlHours.SelectedValue.ToString();

                    if (ddlMinutes.SelectedIndex != 0)
                    {
                        TimeChoosed = TimeChoosed + ":" + ddlMinutes.SelectedValue.ToString();
                    }
                    else
                    {
                        TimeChoosed = TimeChoosed + ":00";
                    }

                    if (ddlsec.SelectedIndex != 0)
                    {
                        TimeChoosed = TimeChoosed + ":" + ddlsec.SelectedValue.ToString();
                    }
                    else
                    {
                        TimeChoosed = TimeChoosed + ":00";
                    }
                }
                else if (ddlMinutes.SelectedIndex != 0 && ddlMinutes.SelectedIndex != 1)
                {
                    TimeChoosed = "00:" + ddlMinutes.SelectedValue.ToString();
                    if (ddlsec.SelectedIndex != 0)
                    {
                        TimeChoosed = TimeChoosed + ":" + ddlsec.SelectedValue.ToString();
                    }
                    else
                    {
                        TimeChoosed = TimeChoosed + ":00";
                    }
                }
                else if (ddlsec.SelectedIndex != 0 && ddlsec.SelectedIndex != 1)
                {
                    TimeChoosed = "00:00:" + ddlsec.SelectedValue.ToString();
                }
                else
                {
                    TimeChoosed = string.Empty;
                }

                objBECommon.strTime = TimeChoosed;

                objBCommon.BAddComments(objBECommon);
                objBECommon      = null;
                objBECommon      = null;
                txtComments.Text = string.Empty;
                gvComments.Rebind();
                ddlFlags.SelectedValue   = "-1";
                ddlHours.SelectedIndex   = 0;
                ddlMinutes.SelectedIndex = 0;
                ddlsec.SelectedIndex     = 0;
                txtComments.Visible      = false;
                ddlAlerts.Items.Clear();
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }