Exemplo n.º 1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     try
     {
         if (Convert.ToString(Server.HtmlEncode(Request.Cookies["MyLogin"]["PWD"])) == "")
         {
             Response.Redirect("../Login.aspx");
         }
         else
         {
             if (!IsPostBack)
             {
                 maikal dev = new maikal();
                 maikal mk  = new maikal();
                 int    lvl = mk.returnlevel(Server.HtmlEncode(Request.Cookies["MyLogin"]["UID"]).ToString(), Server.HtmlEncode(Request.Cookies["MyLogin"]["PWD"]).ToString());
                 int    se  = dev.chksession();
                 if (se == 0)
                 {
                     ddlExamSeason.SelectedValue = "Sum";
                 }
                 else
                 {
                     ddlExamSeason.SelectedValue = "Win";
                 }
                 txtYearSeason.Text   = DateTime.Now.Year.ToString();
                 lblHiddenSeason.Text = ddlExamSeason.SelectedValue.ToString() + "" + txtYearSeason.Text.ToString();
                 txtDiaryNo.Visible   = false; ddlExamSeason.Visible = false; txtYearSeason.Visible = false;
                 lblGridTitle.Text    = "This Week Diary";
                 SqlDataAdapter ad = new SqlDataAdapter("select Name,Phone,Mobile,Email,Date,Reason,Detail from Reception where Date BETWEEN '" + DateTime.Now.AddDays(-7) + "' and '" + DateTime.Now + "' order by SN DESC", con);
                 DataSet        ds = new DataSet();
                 ad.Fill(ds);
                 GridView1.DataSource = ds;
                 GridView1.DataBind();
                 ddlType.Focus();
             }
         }
     }
     catch (NullReferenceException ex)
     {
         Response.Redirect("../Login.aspx");
     }
 }
 protected void Page_Load(object sender, EventArgs e)
 {
     try
     {
         if (Convert.ToString(Server.HtmlEncode(Request.Cookies["MyLogin"]["PWD"])) == "")
         {
             Response.Redirect("../Login.aspx");
         }
         else
         {
             if (!IsPostBack)
             {
                 con.Open();
                 maikal dev = new maikal();
                 int    se  = dev.chksession();
                 if (se == 0)
                 {
                     ddlExamSeason.SelectedValue = "Sum";
                 }
                 else
                 {
                     ddlExamSeason.SelectedValue = "Win";
                 }
                 txtYearSeason.Text   = DateTime.Now.Year.ToString();
                 lblHiddenSeason.Text = ddlExamSeason.SelectedValue.ToString() + "" + txtYearSeason.Text.ToString();
                 txtDiaryNo.Visible   = false; ddlExamSeason.Visible = false; txtYearSeason.Visible = false;
                 lblGridTitle.Text    = "Courier Details";
                 SqlDataAdapter ad = new SqlDataAdapter("select  DairyNo,Session,Department,DairyType,IMID,CurrentDate,Status from DairyCount where CurrentDate BETWEEN '" + DateTime.Now.AddDays(-7) + "' and '" + DateTime.Now + "'", con);
                 DataSet        ds = new DataSet();
                 ad.Fill(ds);
                 GridView1.DataSource = ds;
                 GridView1.DataBind();
                 ddlType.Focus();
                 con.Close();
             }
         }
     }
     catch (NullReferenceException ex)
     {
         Response.Redirect("../Login.aspx");
     }
 }
Exemplo n.º 3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     try
     {
         if (Convert.ToString(Server.HtmlEncode(Request.Cookies["MyLogin"]["PWD"])) == "")
         {
             Response.Redirect("../Login.aspx");
         }
         else
         {
             if (!IsPostBack)
             {
                 clstate.xmlstate(ddlState, "XMLState.xml");
                 clstate.xmlstate(ddlState2, "XMLState.xml");
                 txtEnrolment.Text = DateTime.Now.ToString("dd/MM/yyyy");
                 maikal dev = new maikal();
                 int    se  = dev.chksession();
                 if (se == 0)
                 {
                     ddlExamSeason.SelectedValue = "Sum";
                 }
                 else
                 {
                     ddlExamSeason.SelectedValue = "Win";
                 }
                 txtYearSeason.Text      = DateTime.Now.Year.ToString();
                 lblSeasonHidden.Text    = ddlExamSeason.SelectedValue.ToString() + "" + txtYearSeason.Text.ToString();
                 panelMemberIDIS.Visible = false; pnlAdmission.Visible = false;
                 panleSpace.Visible      = true;
                 BindCountry();
                 con.Close(); con.Open();
                 lblFeeLevel.Text = getcurrentfees();
                 con.Close(); con.Dispose();
                 txticesn.Focus();
             }
         }
     }
     catch (NullReferenceException ex)
     {
         Response.Redirect("../Login.aspx");
     }
 }
Exemplo n.º 4
0
 protected void Page_init(object sender, EventArgs e)
 {
     try
     {
         if (Convert.ToString(Server.HtmlEncode(Request.Cookies["MyLogin"]["PWD"])) == "")
         {
             Response.Redirect("../../Login.aspx");
         }
         if (Convert.ToString(Server.HtmlEncode(Request.Cookies["MyLogin"]["PWD"])) == "")
         {
             Response.Redirect("../../Login.aspx");
         }
         if (!IsPostBack && !IsCallback)
         {
             Session["cr"] = null;
             CenterDate_Student_Report.Visible = false;
             txtSession.Text = DateTime.Now.Year.ToString();
             maikal dev = new maikal();
             int    se  = dev.chksession();
             if (se == 0)
             {
                 ddlSession.SelectedValue = "Sum";
             }
             else
             {
                 ddlSession.SelectedValue = "Win";
             }
             LoadReport(ReportState.FromStart);
         }
         else
         {
             LoadReport(ReportState.FromPostBack);
         }
     }
     catch (NullReferenceException ex)
     {
         Response.Redirect("../../Login.aspx");
     }
     finally
     {
     }
 }
Exemplo n.º 5
0
 protected void Page_init(object sender, EventArgs e)
 {
     try
     {
         if (Convert.ToString(Server.HtmlEncode(Request.Cookies["MyLogin"]["PWD"])) == "")
         {
             Response.Redirect("../../Login.aspx");
         }
         if (!IsPostBack && !IsCallback)
         {
             Session["cr"] = null;
             maikal dev = new maikal();
             int    se  = dev.chksession();
             if (se == 0)
             {
                 ddlExamSeason.SelectedValue = "Sum";
             }
             else
             {
                 ddlExamSeason.SelectedValue = "Win";
             }
             txtYearSeason.Text = DateTime.Now.Year.ToString();
             if (ddlProjectCopies.SelectedValue == "CopySubmitted")
             {
                 date.Visible = false;
             }
             else
             {
                 date.Visible = true;
             }
             LoadReport(ReportState.FromStart, ProjectApproved_Report, "ProjectApproved.rpt");
         }
         else
         {
             LoadReport(ReportState.FromPostBack, ProjectApproved_Report, "ProjectApproved.rpt");
         }
     }
     catch (NullReferenceException ex)
     {
         Response.Redirect("../../Login.aspx");
     }
 }
Exemplo n.º 6
0
 protected void Page_Load(object sender, EventArgs e)
 {
     try
     {
         if (Convert.ToString(Server.HtmlEncode(Request.Cookies["MyLogin"]["PWD"])) == "")
         {
             Response.Redirect("../Login.aspx");
         }
         else
         {
             if (!IsPostBack)
             {
                 maikal dev = new maikal();
                 int    se  = dev.chksession();
                 if (se == 0)
                 {
                     ddlExamSeason.SelectedValue = "Sum";
                 }
                 else
                 {
                     ddlExamSeason.SelectedValue = "Win";
                 }
                 txtYearSeason.Text       = DateTime.Now.Year.ToString();
                 lblExamSeasonHidden.Text = ddlExamSeason.SelectedValue.ToString() + "" + txtYearSeason.Text.ToString();
                 ClsEdit cledit = new ClsEdit();
                 lblToExamDiary.Text       = cledit.ExamToDiary(lblExamSeasonHidden.Text.ToString());
                 lblExamFormSub.Text       = cledit.ExamFormSubmitted(lblExamSeasonHidden.Text.ToString());
                 lblExamFormApproved.Text  = cledit.ExamFormApproved(lblExamSeasonHidden.Text.ToString());
                 lblExamFormFilled.Text    = cledit.ExamFormFilled(lblExamSeasonHidden.Text.ToString());
                 lblExamHold.Text          = cledit.ExamFormHold(lblExamSeasonHidden.Text.ToString());
                 lblExamFormRollNo.Text    = cledit.ExamFormRollNO(lblExamSeasonHidden.Text.ToString());
                 lblExamFormAdmitCard.Text = cledit.ExamFormAdmitCard(lblExamSeasonHidden.Text.ToString());
                 btnViewMembership.Visible = false;
                 ddlExamSeason.Focus();
             }
         }
     }
     catch (NullReferenceException ex)
     {
         Response.Redirect("../Login.aspx");
     }
 }
Exemplo n.º 7
0
    private void dispaly()
    {
        string mon;
        maikal dev = new maikal();
        int    se  = dev.chksession();

        if (se == 1)
        {
            mon = "Win";
        }
        else
        {
            mon = "Sum";
        }
        lblApproval.Text   = clsts.AcApproval(mon + DateTime.Now.Year.ToString());
        lblHold.Text       = clsts.AcHold(mon + DateTime.Now.Year.ToString());
        lblDDEntry.Text    = clsts.AcDDEntry();
        lblDebitNote.Text  = clsts.AcDebitNote();
        lblReApproval.Text = clsts.AcReApproval();
    }
Exemplo n.º 8
0
 protected void Page_Load(object sender, EventArgs e)
 {
     try
     {
         if (Server.HtmlEncode(Request.Cookies["MyLogin"]["PWD"]) == null)
         {
             Response.Redirect("../Login.aspx");
         }
         else
         {
             if (!IsPostBack)
             {
                 clstate.xmlstate(ddlState, "XMLState.xml");
                 maikal dev = new maikal();
                 int    se  = dev.chksession();
                 if (se == 0)
                 {
                     ddlsession.SelectedValue = "Sum";
                 }
                 else
                 {
                     ddlsession.SelectedValue = "Win";
                 }
                 txtSession.Text        = DateTime.Now.Year.ToString();
                 lblSessionHiddend.Text = ddlsession.SelectedValue.ToString() + "" + txtSession.Text.ToString();
                 if (se == 0)
                 {
                     ddlsession3.SelectedValue = "Sum";
                 }
                 else
                 {
                     ddlsession3.SelectedValue = "Win";
                 }
                 txtSession3.Text = DateTime.Now.Year.ToString();
                 lblSession.Text  = ddlsession.SelectedValue.ToString() + "" + txtSession.Text.ToString();
                 txtreg.Text      = DateTime.Now.ToString("dd/MM/yyyy"); txtName.Focus();
             }
         }
     }
     catch (NullReferenceException ex) { Response.Redirect("../Login.aspx"); }
 }
Exemplo n.º 9
0
 protected void Page_Load(object sender, EventArgs e)
 {
     try
     {
         pnlid.Visible = false;
         if (Server.HtmlEncode(Request.Cookies["MyLogin"]["PWD"]) == null)
         {
             Response.Redirect("../Login.aspx");
         }
         if (!IsPostBack)
         {
             maikal dev = new maikal();
             int    se  = dev.chksession();
             if (se == 0)
             {
                 ddlsession.SelectedValue = "Sum";
             }
             else
             {
                 ddlsession.SelectedValue = "Win";
             }
             txtSession.Text           = DateTime.Now.Year.ToString();
             lblSessionHiddend.Text    = ddlsession.SelectedValue.ToString() + "" + txtSession.Text.ToString();
             panelSubmitAmt.Visible    = false;
             panelSubmitamount.Visible = false;
             panelReNew.Visible        = true;
             panelspace.Visible        = true;
             txtDate.Text         = DateTime.Now.ToString("dd/MM/yyyy");
             btnSubscribe.Enabled = false;
             txtAmt.Text          = "";
             txtIMID.Focus();
         }
     }
     catch (NullReferenceException ex)
     {
         Response.Redirect("../Login.aspx");
     }
     finally
     {
     }
 }
Exemplo n.º 10
0
 protected void Page_Load(object sender, EventArgs e)
 {
     try
     {
         if (Convert.ToString(Server.HtmlEncode(Request.Cookies["MyLogin"]["PWD"])) == "")
         {
             Response.Redirect("../Login.aspx");
         }
         else
         {
             if (!IsPostBack)
             {
                 maikal dev = new maikal();
                 maikal mk  = new maikal();
                 int    lvl = mk.returnlevel(Server.HtmlEncode(Request.Cookies["MyLogin"]["UID"]).ToString(), Server.HtmlEncode(Request.Cookies["MyLogin"]["PWD"]).ToString());
                 int    se  = dev.chksession();
                 if (se == 0)
                 {
                     ddlExamSeason.SelectedValue = "Sum";
                 }
                 else
                 {
                     ddlExamSeason.SelectedValue = "Win";
                 }
                 txtYearSeason.Text   = DateTime.Now.Year.ToString();
                 lblHiddenSeason.Text = ddlExamSeason.SelectedValue.ToString() + "" + txtYearSeason.Text.ToString();
                 lblName.Text         = "IMID";
                 pnlNo.Visible        = false; pnlsession.Visible = true; ddlCourier.Visible = false;
                 lblGridTitle.Text    = "Last 30 Couriers " + txtNo.Text.ToString();
                 query = "select CourierType,SendTo,Name,Date,CourierService,Session,CourierSerialno,Consignmentno,Weight,Amount from CourierRD where Date BETWEEN '" + DateTime.Now.AddDays(-30) + "' and '" + DateTime.Now + "'";
                 GridCourier.DataSource = fillGrid();
                 DataBind();
                 ddlsearch.Focus();
             }
         }
     }
     catch (NullReferenceException ex)
     {
         Response.Redirect("../Login.aspx");
     }
 }
Exemplo n.º 11
0
    protected void Page_init(object sender, EventArgs e)
    {
        try
        {
            if (Convert.ToString(Server.HtmlEncode(Request.Cookies["MyLogin"]["PWD"])) == "")
            {
                Response.Redirect("../../Login.aspx");
            }


            if (!IsPostBack && !IsCallback)
            {
                Session["cr"]               = null;
                MainAc_Report.Visible       = false;
                rbtnlstSelect.SelectedValue = "IMID";
                pnlDiary.Visible            = false;
                //    rptTitle = "";
                maikal dev = new maikal();
                int    se  = dev.chksession();
                if (se == 0)
                {
                    ddlsession.SelectedValue = "Sum";
                }
                else
                {
                    ddlsession.SelectedValue = "Win";
                }
                txtSession.Text       = DateTime.Now.Year.ToString();
                lblhiddenSession.Text = ddlsession.SelectedValue.ToString() + "" + txtSession.Text.ToString();
            }
            else
            {
                LoadReport(ReportState.FromPostBack);
            }
        }

        catch (NullReferenceException ex)
        {
            Response.Redirect("../../Login.aspx");
        }
    }
Exemplo n.º 12
0
 protected void Page_Load(object sender, EventArgs e)
 {
     try
     {
         if (Convert.ToString(Server.HtmlEncode(Request.Cookies["MyLogin"]["PWD"])) == "")
         {
             Response.Redirect("../Login.aspx");
         }
         else
         {
             if (!IsPostBack)
             {
                 clstate.xmlstate(ddlState, "XMLState.xml");
                 maikal dev = new maikal();
                 maikal mk  = new maikal();
                 int    lvl = mk.returnlevel(Server.HtmlEncode(Request.Cookies["MyLogin"]["UID"]).ToString(), Server.HtmlEncode(Request.Cookies["MyLogin"]["PWD"]).ToString());
                 int    se  = dev.chksession();
                 if (se == 0)
                 {
                     ddlExamSeason.SelectedValue = "Sum";
                 }
                 else
                 {
                     ddlExamSeason.SelectedValue = "Win";
                 } lblFromName.Text   = "Diary No.:";
                 txtYearSeason.Text   = DateTime.Now.Year.ToString(); tbllabel.Visible = true;
                 formstatus           = "Yes";
                 lblHiddenSeason.Text = ddlExamSeason.SelectedValue.ToString() + "" + txtYearSeason.Text.ToString();
                 panelhide.Visible    = true; panelshow.Visible = false;
                 ddlExamSeason.Focus();
                 panelCourier.Visible = false; panelStatus.Visible = false;
                 ddlExamSeason.Focus();
             }
             btnBlock.Visible = false;
         }
     }
     catch (NullReferenceException ex)
     {
         Response.Redirect("../Login.aspx");
     }
 }
Exemplo n.º 13
0
 protected void Page_Load(object sender, EventArgs e)
 {
     try
     {
         if (Server.HtmlEncode(Request.Cookies["MyLogin"]["PWD"]) == null)
         {
             Response.Redirect("../Login.aspx");
         }
         else
         {
         }
         if (!IsPostBack)
         {
             pnlGrid.Visible       = false;
             pnlList.Visible       = false;
             pnlProspectus.Visible = false;
             gen();
             datastructure();
             txtYear.Text = DateTime.Now.Year.ToString();
             maikal dev = new maikal();
             int    se  = dev.chksession();
             if (se == 0)
             {
                 ddlExamSeason.SelectedValue = "Sum";
             }
             else
             {
                 ddlExamSeason.SelectedValue = "Win"; // lblFromName.Text = "Membership No:";
             }
             lblHiddenSeason.Text = ddlExamSeason.SelectedValue.ToString() + "" + txtYear.Text.ToString();
             txtDate.Text         = DateTime.Now.ToString("dd/MM/yyyy");
             fillgrd();
             ddlExamSeason.Focus();
         }
     }
     catch (NullReferenceException ex)
     {
         Response.Redirect("../Login.aspx");
     }
 }
 protected void Page_Load(object sender, EventArgs e)
 {
     try
     {
         if (Convert.ToString(Server.HtmlEncode(Request.Cookies["MyLogin"]["PWD"])) == "")
         {
             Response.Redirect("../Login.aspx");
         }
         else
         {
             if (!IsPostBack)
             {
                 maikal dev = new maikal();
                 maikal mk  = new maikal();
                 int    lvl = mk.returnlevel(Server.HtmlEncode(Request.Cookies["MyLogin"]["UID"]).ToString(), Server.HtmlEncode(Request.Cookies["MyLogin"]["PWD"]).ToString());
                 int    se  = dev.chksession();
                 if (se == 0)
                 {
                     ddlExamSeason.SelectedValue = "Sum";
                 }
                 else
                 {
                     ddlExamSeason.SelectedValue = "Win";
                 }
                 txtYearSeason.Text   = DateTime.Now.Year.ToString();
                 lblHiddenSeason.Text = ddlExamSeason.SelectedValue.ToString() + "" + txtYearSeason.Text.ToString();
                 lblName.Text         = "IMID";
                 pnlNo.Visible        = false; pnlsession.Visible = true; ddlCourier.Visible = false;
                 lblGridTitle.Text    = "Courier Dispatch Details " + txtNo.Text.ToString();
                 query = "select SNo,CourierType,Name,SendTo,City,State,CourierService,Weight,Amount,Date,CourierSerialno from CourierRD ";
                 fillGrid(query);
                 ddlsearch.Focus();
             }
         }
     }
     catch (NullReferenceException ex)
     {
         Response.Redirect("../Login.aspx");
     }
 }
Exemplo n.º 15
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         maikal dev = new maikal();
         int    se  = dev.chksession();
         if (se == 0)
         {
             ddlExamSeason.SelectedValue = "Sum";
         }
         else
         {
             ddlExamSeason.SelectedValue = "Win";
         }
         txtYearSeason.Text   = DateTime.Now.Year.ToString();
         lblSeasonHidden.Text = ddlExamSeason.SelectedValue.ToString() + "" + txtYearSeason.Text.ToString();
         bindName();
         ddlExamSeason.Focus();
         GridView1.Visible = false;
         txtSearch.Text    = "";
     }
 }
Exemplo n.º 16
0
 protected void Page_Load(object sender, EventArgs e)
 {
     try
     {
         if (Convert.ToString(Server.HtmlEncode(Request.Cookies["MyLogin"]["PWD"])) == "")
         {
             Response.Redirect("../Login.aspx");
         }
         else
         {
             if (!IsPostBack)
             {
                 txtDate.Text = DateTime.Now.ToString("dd/MM/yyyy");
                 pnlVisiblefls(); pnlToFrom.Visible = false; pnlPsubmit.Visible = false;
                 maikal dev = new maikal();
                 int    se  = dev.chksession();
                 if (se == 0)
                 {
                     ddlExamSeason.SelectedValue = "Sum";
                 }
                 else
                 {
                     ddlExamSeason.SelectedValue = "Win";
                 }
                 txtYearSeason.Text         = DateTime.Now.Year.ToString();
                 lblHiddenSeason.Text       = ddlExamSeason.SelectedValue.ToString() + "" + txtYearSeason.Text.ToString();
                 panelCourier.Visible       = false; btnNewDepartment.Visible = false;
                 btnPSubmit.Visible         = false;
                 tblEmpNameAcademic.Visible = false;
                 bindDiary();
                 ddlExamSeason.Focus();
             }
         }
     }
     catch (NullReferenceException ex)
     {
         Response.Redirect("../Login.aspx");
     }
 }
Exemplo n.º 17
0
    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            if (Convert.ToString(Server.HtmlEncode(Request.Cookies["MyLogin"]["PWD"])) == "")
            {
                Response.Redirect("../Login.aspx");
            }
            else
            {
                if (!IsPostBack)
                {
                    panDiary.Visible    = false;
                    panelLetter.Visible = false;

                    txtDate.Text = DateTime.Now.ToString("dd/MM/yyyy hh:mm");
                    maikal dev = new maikal();
                    int    se  = dev.chksession();
                    if (se == 0)
                    {
                        ddlExamSeason.SelectedValue = "Sum";
                    }
                    else
                    {
                        ddlExamSeason.SelectedValue = "Win";
                    }
                    txtYearSeason.Text            = DateTime.Now.Year.ToString();
                    lblHiddenSeason.Text          = ddlExamSeason.SelectedValue.ToString() + "" + txtYearSeason.Text.ToString();
                    ddlDiaryType.Items[1].Enabled = false;
                    bindDiary();
                    ddlExamSeason.Focus();
                }
            }
        }
        catch (NullReferenceException ex)
        {
            Response.Redirect("../Login.aspx");
        }
    }
Exemplo n.º 18
0
 protected void Page_Load(object sender, EventArgs e)
 {
     try
     {
         if (Server.HtmlEncode(Request.Cookies["MyLogin"]["PWD"]) == null)
         {
             Response.Redirect("../Login.aspx");
         }
         else
         {
         }
         if (!IsPostBack)
         {
             Iitems = new InvenItem();
             Iitems.getItems(ddlType);
             pnlList.Visible = false;
             ddlType.Visible = true;
             lblName.Text    = "select Order Type:";
             ddlExamSeason.Focus();
             txtYear.Text = DateTime.Now.Year.ToString();
             maikal dev = new maikal();
             int    se  = dev.chksession();
             if (se == 0)
             {
                 ddlExamSeason.SelectedValue = "Sum";
             }
             else
             {
                 ddlExamSeason.SelectedValue = "Win"; // lblFromName.Text = "Membership No:";
             }
             lblHiddenSeason.Text = ddlExamSeason.SelectedValue.ToString() + "" + txtYear.Text.ToString();
         }
     }
     catch (NullReferenceException ex)
     {
         Response.Redirect("../Login.aspx");
     }
 }
Exemplo n.º 19
0
 protected void Page_Load(object sender, EventArgs e)
 {
     try
     {
         if (Server.HtmlEncode(Request.Cookies["MyLogin"]["PWD"]) == null)
         {
             Response.Redirect("../Login.aspx");
         }
         else
         {
             if (!IsPostBack)
             {
                 if (pnlComp.Visible == false)
                 {
                     pnlSpace.Visible = true;
                 }
                 maikal dev = new maikal();
                 int    se  = dev.chksession();
                 if (se == 0)
                 {
                     ddlsession.SelectedValue = "Sum";
                 }
                 else
                 {
                     ddlsession.SelectedValue = "Win";
                 }
                 txtSession.Text        = DateTime.Now.Year.ToString();
                 lblSessionHiddend.Text = ddlsession.SelectedValue.ToString() + "" + txtSession.Text.ToString();
                 ddlsession.Focus();
                 txtapprovaldate.Text = DateTime.Now.ToString("dd/MM/yyyy");
             }
         }
     }
     catch (NullReferenceException ex)
     {
         Response.Redirect("../Login.aspx");
     }
 }
Exemplo n.º 20
0
 protected void Page_Load(object sender, EventArgs e)
 {
     try
     {
         if (Convert.ToString(Server.HtmlEncode(Request.Cookies["MyLogin"]["PWD"])) == "")
         {
             Response.Redirect("../Login.aspx");
         }
         else
         {
             if (!IsPostBack)
             {
                 maikal dev = new maikal();
                 int    se  = dev.chksession();
                 if (se == 0)
                 {
                     ddlExamSeason.SelectedValue = "Sum";
                 }
                 else
                 {
                     ddlExamSeason.SelectedValue = "Win";
                 }
                 txtYearSeason.Text       = DateTime.Now.Year.ToString();
                 lblSeasonHidden.Text     = ddlExamSeason.SelectedValue.ToString() + "" + txtYearSeason.Text.ToString();
                 lblHiddenStream.Text     = "Tech";
                 ddlCourse.Enabled        = false; ddlPart.Enabled = false; btnUpdate.Enabled = false;
                 txtOldSID.Visible        = false; ibtnOldSIDInfo.Visible = false; pnlOldSIDInfo.Visible = false;
                 rbtnNewAdmission.Checked = true; tblApps.Visible = false; rbtnMembership.Checked = true;
                 txtSID.Focus();
             }
         }
     }
     catch (NullReferenceException ex)
     {
         Response.Redirect("../Login.aspx");
     }
 }
Exemplo n.º 21
0
 protected void Page_Load(object sender, EventArgs e)
 {
     try
     {
         if (Server.HtmlEncode(Request.Cookies["MyLogin"]["PWD"]) == null)
         {
             Response.Redirect("../Login.aspx");
         }
         else
         {
             if (!IsPostBack)
             {
                 maikal dev = new maikal();
                 int    se  = dev.chksession();
                 if (se == 0)
                 {
                     ddlsession.SelectedValue = "Sum";
                 }
                 else
                 {
                     ddlsession.SelectedValue = "Win";
                 }
                 txtSession.Text        = DateTime.Now.Year.ToString();
                 lblSessionHiddend.Text = ddlsession.SelectedValue.ToString() + "" + txtSession.Text.ToString();
                 ddlsession.Focus();
                 GridBind();
                 btnOldProject.Enabled = false;
                 btnRunning.Enabled    = false;
                 pnlSID.Visible        = false;
             }
         }
     }
     catch (NullReferenceException ex)
     {
         Response.Redirect("../Login.aspx");
     }
 }
Exemplo n.º 22
0
 // string FormType;
 protected void Page_Load(object sender, EventArgs e)
 {
     try
     {
         if (Server.HtmlEncode(Request.Cookies["MyLogin"]["PWD"]) == null)
         {
             Response.Redirect("../Login.aspx");
         }
         if (!IsPostBack)
         {
             maikal dev = new maikal();
             int    se  = dev.chksession();
             if (se == 0)
             {
                 ddlsession.SelectedValue = "Sum";
             }
             else
             {
                 ddlsession.SelectedValue = "Win";
             }
             txtSession.Text        = DateTime.Now.Year.ToString();
             lblSessionHiddend.Text = ddlsession.SelectedValue.ToString() + "" + txtSession.Text.ToString();
             PnlMembership.Visible  = false; btnSubmit.Enabled = false;
             lblDupForm.Text        = "NO";
             lblMsg.Text            = "";
             ddlStatus.Enabled      = false;
             con.Close(); con.Open();
             lblCurrentBatch.Text = (AutoCAD.currentBatch(con)).ToString();
             con.Close(); con.Dispose();
             ddlsession.Focus();
         }
     }
     catch (NullReferenceException ex)
     {
         Response.Redirect("../Login.aspx");
     }
 }
Exemplo n.º 23
0
 protected void Page_Load(object sender, EventArgs e)
 {
     try
     {
         if (Convert.ToString(Server.HtmlEncode(Request.Cookies["MyLogin"]["PWD"])) == "")
         {
             Response.Redirect("../Login.aspx");
         }
         else
         {
             if (!IsPostBack)
             {
                 ClsEdit cledit = new ClsEdit();
                 maikal  dev    = new maikal();
                 int     se     = dev.chksession();
                 if (se == 0)
                 {
                     ddlExamSeason.SelectedValue = "Sum";
                 }
                 else
                 {
                     ddlExamSeason.SelectedValue = "Win";
                 }
                 txtYearSeason.Text       = DateTime.Now.Year.ToString();
                 lblExamSeasonHidden.Text = ddlExamSeason.SelectedValue.ToString() + "" + txtYearSeason.Text.ToString();
                 lblToExamForm.Text       = cledit.ExamFormFilled(lblExamSeasonHidden.Text.ToString());
                 lblMarkNotSubmitted.Text = cledit.ExamMarksNotSubmitted(lblExamSeasonHidden.Text.ToString());
                 lblMarksSubmitted.Text   = cledit.ExamMarksSubmitted(lblExamSeasonHidden.Text.ToString());
                 ddlExamSeason.Focus();
             }
         }
     }
     catch (NullReferenceException ex)
     {
         Response.Redirect("../Login.aspx");
     }
 }
Exemplo n.º 24
0
 protected void Page_Load(object sender, EventArgs e)
 {
     try
     {
         if (Server.HtmlEncode(Request.Cookies["MyLogin"]["PWD"]) == null)
         {
             Response.Redirect("../Login.aspx");
         }
         if (!IsPostBack)
         {
             maikal dev = new maikal();
             int    se  = dev.chksession();
             if (se == 0)
             {
                 ddlsession.SelectedValue = "Sum";
             }
             else
             {
                 ddlsession.SelectedValue = "Win";
             }
             txtSession.Text        = DateTime.Now.Year.ToString();
             lblSessionHiddend.Text = ddlsession.SelectedValue.ToString() + "" + txtSession.Text.ToString();
             ddlbindSearch();
             bindddlApptype();
             ddlsession.Focus();
             con.Close(); con.Dispose();
         }
     }
     catch (NullReferenceException ex)
     {
         Response.Redirect("../Login.aspx");
     }
     finally
     {
     }
 }
Exemplo n.º 25
0
 protected void Page_Load(object sender, EventArgs e)
 {
     try
     {
         if (Convert.ToString(Server.HtmlEncode(Request.Cookies["MyLogin"]["PWD"])) == "")
         {
             Response.Redirect("../Login.aspx");
         }
         else
         {
             VerifyRenderingInServerForm(this);
             if (!IsPostBack)
             {
                 txtYear.Text = DateTime.Now.Year.ToString();
                 maikal mk = new maikal();
                 int    sn = mk.chksession();
                 if (sn == 0)
                 {
                     ddlSessionSelect.SelectedValue = "Sum";
                 }
                 else
                 {
                     ddlSessionSelect.SelectedValue = "Win";
                 }
                 lblSessionHidden.Text = ddlSessionSelect.SelectedValue.ToString() + "" + txtYear.Text.ToString();
                 ddlSessionSelect.Focus();
                 grviti.DataSource = disp(); grviti.DataBind();
                 panRollNo.Visible = true;
             }
         }
     }
     catch (NullReferenceException ex)
     {
         Response.Redirect("../Login.aspx");
     }
 }
Exemplo n.º 26
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (Server.HtmlEncode(Request.Cookies["MyLogin"]["PWD"]) == null)
     {
         Response.Redirect("../Login.aspx");
     }
     if (!IsPostBack)
     {
         maikal dev = new maikal();
         int    se  = dev.chksession();
         if (se == 0)
         {
             ddlExamSeason.SelectedValue = "Sum";
         }
         else
         {
             ddlExamSeason.SelectedValue = "Win";
         }
         txtYearSeason.Text       = DateTime.Now.Year.ToString();
         lblExamSeasonHidden.Text = ddlExamSeason.SelectedValue.ToString() + "" + txtYearSeason.Text.ToString();
         lblSessionID.Text        = sd.SessionToSessionID(lblExamSeasonHidden.Text).ToString();
         txtSID.Focus();
     }
 }
Exemplo n.º 27
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (Convert.ToString(Server.HtmlEncode(Request.Cookies["MyLogin"]["PWD"])) == "")
     {
         Response.Redirect("../Login.aspx");
     }
     if (!IsPostBack)
     {
         txtYearSeason.Text = DateTime.Now.Year.ToString();
         maikal mk = new maikal();
         int    sn = mk.chksession();
         if (sn == 0)
         {
             ddlExamSeason.SelectedValue = "Sum";
         }
         else
         {
             ddlExamSeason.SelectedValue = "Win";
         }
         lblHiddenSeason.Text = ddlExamSeason.SelectedValue.ToString() + "" + txtYearSeason.Text.ToString();
         bindPaperCode();
         ddlExamSeason.Focus();
     }
 }
Exemplo n.º 28
0
 protected void Page_Load(object sender, EventArgs e)
 {
     try
     {
         if (Convert.ToString(Server.HtmlEncode(Request.Cookies["MyLogin"]["PWD"])) == "")
         {
             Response.Redirect("../Login.aspx");
         }
         else
         {
             if (!IsPostBack)
             {
                 maikal dev = new maikal();
                 ecity.getItems(ddlExamCity);
                 ecity.getItems(ddlExamCity2);
                 int se = dev.chksession();
                 if (se == 0)
                 {
                     ddlExamSeason.SelectedValue = "Sum";
                 }
                 else
                 {
                     ddlExamSeason.SelectedValue = "Win";
                 }
                 txtYearSeason.Text       = DateTime.Now.Year.ToString();
                 lblExamSeasonHidden.Text = ddlExamSeason.SelectedValue.ToString() + "" + txtYearSeason.Text.ToString();
                 sd = new SessionDuration();
                 lblSessionID.Text = sd.SessionToSessionID(lblExamSeasonHidden.Text.ToString()).ToString();
             }
         }
     }
     catch (NullReferenceException ex)
     {
         Response.Redirect("../Login.aspx");
     }
 }
Exemplo n.º 29
0
 protected void Page_Load(object sender, EventArgs e)
 {
     try
     {
         if (Convert.ToString(Server.HtmlEncode(Request.Cookies["MyLogin"]["PWD"])) == "")
         {
             Response.Redirect("../Login.aspx");
         }
         if (!IsPostBack)
         {
             btnAdd.Visible     = false;
             txtYearSeason.Text = DateTime.Now.Year.ToString();
             string yr  = DateTime.Now.Year.ToString();
             maikal dev = new maikal();
             int    se  = dev.chksession();
             if (se == 0)
             {
                 ddlExamSeason.SelectedValue = "Sum";
             }
             else
             {
                 ddlExamSeason.SelectedValue = "Win";
             }
             lblSeasonHidden.Text = ddlExamSeason.SelectedValue.ToString() + "" + txtYearSeason.Text.ToString();
             txtYearSeason.Text   = DateTime.Now.Year.ToString();
             lblSeasonHidden.Text = ddlExamSeason.SelectedValue.ToString() + "" + txtYearSeason.Text.ToString();
             ddlExamSeason.Focus();
             PanView.Visible  = false;
             panView5.Visible = false;
         }
     }
     catch (NullReferenceException ex)
     {
         Response.Redirect("../Login.aspx");
     }
 }
Exemplo n.º 30
0
    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            if (Convert.ToString(Server.HtmlEncode(Request.Cookies["MyLogin"]["PWD"])) == "")
            {
                Response.Redirect("../Login.aspx");
            }
            if (!IsPostBack)
            {
                con.Open();
                btnSave.Enabled    = false;
                txtYearSeason.Text = DateTime.Now.Year.ToString();
                maikal mk = new maikal();
                int    sn = mk.chksession();
                if (sn == 0)
                {
                    ddlExamSeason.SelectedValue = "Sum";
                }
                else
                {
                    ddlExamSeason.SelectedValue = "Win";
                }
                lblHiddenSeason.Text    = ddlExamSeason.SelectedValue.ToString() + "" + txtYearSeason.Text.ToString();
                ddlCourse.SelectedValue = "Civil";
                ddlPart.SelectedValue   = "PartI";
                string qyry = "";
                if (ddlCourse.SelectedValue.ToString() == "Civil")
                {
                    qyry = "select distinct CourseID from CivilSubMaster";
                }
                else if (ddlCourse.SelectedValue.ToString() == "Architecture")
                {
                    qyry = "select distinct CourseID from ArchiSubMaster";
                }

                SqlDataAdapter ad = new SqlDataAdapter(qyry, con);
                DataSet        ds = new DataSet();
                ad.Fill(ds);
                ddlSyllabus.DataSource     = ds;
                ddlSyllabus.DataTextField  = "CourseID";
                ddlSyllabus.DataValueField = "CourseID";
                ddlSyllabus.DataBind();
                showcourse();
                details();
                GridMarks.DataSource = grid();
                GridMarks.DataBind();
                if (GridMarks.Rows.Count == 0)
                {
                    btnSave.Enabled = false;
                }
                else
                {
                    btnSave.Enabled = true;
                }
                ddlExamSeason.Focus();


                con.Close(); con.Dispose();
            }
        }
        catch (NullReferenceException ex)
        {
            Response.Redirect("../Login.aspx");
        }
    }