protected string GenerateEmailBody(string Subject, string Standard, string Division, string Chapter, string Topic, string Validity)
    {
        string Body = string.Empty;

        try
        {
            Body  = "<b>Hello " + ViewState["TempEmp"].ToString() + ",<b/><br/><br/>";
            Body += "<table border='1' width='100%'>";
            Body += "<tr><td colspan='6' align='center'><b>Rescheduling request approved<b/></td></tr>";
            Body += "<tr><th>Subject</th><th>Standard</th><th>Division</th><th>Chapter</th><th>Topic</th><th>Valid Till</th>";
            Body += "<tr><td>" + Subject + "</td><td>" + Standard + "</td><td>" + Division + "Division</td><td>" + Chapter + "</td><td>" + Topic + "</td><td>" + Validity + "</td>";
            Body += "</table><br/>";
            Body += "<a href='" + Session["LoginURL"].ToString() + "'>Please click here to login.<a/><br/><br/>";
            Body += "<b>Regards,<b/><br/>";
            Body += "<b>" + EmailUtility.USERNAME + "<b/>";
        }
        catch (Exception ex)
        {
            WebMsg.Show(ex.Message);
        }
        return(Body);
    }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                var BaseUser = (NF.Framework.CurrentUser)HttpContext.Current.Session["CurrentUser"];
                if (BaseUser != null)
                {
                    ltlCustID.Text = BaseUser.CustId;

                    if (string.IsNullOrEmpty(Request.QueryString["orderNo"]))
                    {
                        ltlOrderNo.Text = Request.QueryString["orderNo"];

                        GetList();
                    }
                }
                else
                {
                    WebMsg.CheckUserLogin();
                }
            }
        }
Exemple #3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                txtremark.Text = "";

                GetShipVia();
                DateTime dt = DateTime.Now;
                //默认打印状态
                this.ddlPrintStatus.SelectedValue = "1";

                var vUser = (NF.Framework.CurrentUser)HttpContext.Current.Session["CurrentUser"];
                if (vUser != null)
                {
                    hidempname.Value = vUser.Name;
                }
                else
                {
                    WebMsg.CheckUserLogin();
                }
            }
        }
Exemple #4
0
        private void GetFun()
        {
            var user = (NF.Framework.CurrentUser)HttpContext.Current.Session["CurrentUser"];

            if (user != null)
            {
                buttonService.RefreshButton(Request.RawUrl, user, Session);
                List <TS_BUTTON> button = (List <TS_BUTTON>)Session["button"];

                foreach (var item in button)
                {
                    if (Page.FindControl(item.C_CODE) != null)
                    {
                        Page.FindControl(item.C_CODE).Visible = true;
                    }
                }
            }
            else
            {
                WebMsg.CheckUserLogin();
            }
        }
Exemple #5
0
        //删除
        protected void btnDel_Click(object sender, EventArgs e)
        {
            string IDList = "";

            foreach (RepeaterItem item in rptList.Items)
            {
                HtmlInputCheckBox chkSelect = (HtmlInputCheckBox)item.FindControl("chkSelect");
                if (chkSelect.Checked)
                {
                    IDList += "'" + chkSelect.Value + "',";
                }
            }
            if (!string.IsNullOrEmpty(IDList))
            {
                IDList = IDList.Substring(0, IDList.Length - 1);
                if (notice.UpdateStatus(IDList, 0))
                {
                    WebMsg.MessageBox("删除成功");
                    ByPageBind();
                }
            }
        }
Exemple #6
0
    protected void ibtnEdit_Click(object sender, ImageClickEventArgs e)
    {
        if (pnlEdit.CssClass == "InVisible")
        {
            AllPanelVisible();
            ClearControls(txtFeedbackEdit);
            pnlEdit.CssClass   = "Visible";
            pnlSearch.CssClass = "InVisible";
        }
        //if (pnlEdit.CssClass != "InVisible")
        //{
        int CountChecked = 0;
        int GRIndex      = 0;

        foreach (GridViewRow gr in grvSYS_Feedbackdetail.Rows)
        {
            CheckBox chk = new CheckBox();
            chk = (CheckBox)gr.FindControl("chkSelect");
            if (chk.Checked == true)
            {
                CountChecked++;
                GRIndex = gr.RowIndex;
            }
        }
        if (CountChecked == 0 || CountChecked > 1)
        {
            WebMsg.Show("Please select one row to update.");
        }
        else
        {
            AllPanelVisible();
            pnlEdit.CssClass   = "Visible";
            pnlSearch.CssClass = "InVisible";
            ViewState["FeedbackQuestionID"] = Convert.ToInt32(grvSYS_Feedbackdetail.DataKeys[GRIndex]["FeedbackQuestionID"]);
            txtFeedbackEdit.Text            = Convert.ToString(grvSYS_Feedbackdetail.DataKeys[GRIndex]["FeedbackQuestion"]);
            string IsActive = Convert.ToString(grvSYS_Feedbackdetail.DataKeys[GRIndex]["IsActive"]);
        }
        //}
    }
Exemple #7
0
 protected void grdClassroomWiseAttendance_Sorting(object sender, GridViewSortEventArgs e)
 {
     try
     {
         if (e.SortExpression.Trim() == this.SortField)
         {
             this.SortDirection = (this.SortDirection == "descending" ? "ascending" : "descending");
         }
         else
         {
             this.SortDirection = "ascending";
         }
         this.SortField = e.SortExpression;
         BindClassroomattendaceGrid();
         GridViewOperations GrvOperation = new GridViewOperations();
         GrvOperation.GrvSortingSetImage(e, grdAttendance, this.SortDirection);
     }
     catch (Exception ex)
     {
         WebMsg.Show(ex.Message);
     }
 }
 //提交审批
 protected void btnSave_Click(object sender, EventArgs e)
 {
     try
     {
         if (!string.IsNullOrEmpty(hidEmpID.Value))
         {
             //文件
             Mod_TMF_FILEINFO modFile = new Mod_TMF_FILEINFO();
             modFile.C_FLOW_ID = dropFlow.SelectedValue;//流程
             modFile.C_EMP_ID  = ltlUserID.Text;
             modFile.C_TITLE   = txtTitle.Text;
             modFile.N_TYPE    = 2;               //资源
             modFile.C_TASK_ID = hidQualityID.Value;
             modFile.C_STEP_ID = hidSetpID.Value; //步骤
             //步骤操作人
             Mod_TMB_FILE_NEXT_EMP modNextEmp = new Mod_TMB_FILE_NEXT_EMP();
             modNextEmp.C_FILE_ID     = ID;
             modNextEmp.C_NEXT_EMP_ID = hidEmpID.Value;
             modNextEmp.C_STEP_ID     = hidSetpID.Value;
             if (tmc_roll_apply.ApproveQua(modFile, modNextEmp))
             {
                 WebMsg.MessageBox("提交成功", "myRoll.aspx");
             }
             else
             {
                 WebMsg.MessageBox("提交失败");
             }
         }
         else
         {
             WebMsg.MessageBox("请选择下一处理人");
         }
     }
     catch (Exception ex)
     {
         WebMsg.MessageBox(ex.Message);
     }
 }
        //日计划导入NC
        protected void btnplan_nc_Click(object sender, EventArgs e)
        {
            try
            {
                int           num1       = 0; //成功
                int           num2       = 0; //失败
                ApiDayPlan    apidayplan = new ApiDayPlan();
                StringBuilder strResult  = new StringBuilder();
                for (int i = 0; i < rptList.Items.Count; i++)
                {
                    HtmlInputCheckBox cbxselect   = (HtmlInputCheckBox)rptList.Items[i].FindControl("cbxselect");
                    Literal           ltlplancode = (Literal)rptList.Items[i].FindControl("ltlplancode");

                    if (cbxselect.Checked)
                    {
                        string        filePath    = "~/FileInterface/download/" + ltlplancode.Text + ".xml";
                        string        xmlFileName = Server.MapPath(filePath);
                        List <string> resList     = apidayplan.SendXmlDayPlan(ltlplancode.Text, xmlFileName, ltlempid.Text);
                        if (resList[0].ToString() == "1")
                        {
                            num1 += 1;
                            tmp_dayplan.UpdateDayPlanStatus(ltlplancode.Text);//更新日计划状态
                        }
                        else
                        {
                            num2 += 1;
                        }
                    }
                }
                string msg = num1 + "条导入成功," + "失败:" + num2 + "条";
                this.Page.ClientScript.RegisterStartupScript(this.Page.GetType(), "", "<script language='javascript'> _closemsg('" + msg + "');</script>", false);
                GetList();//加载日计划
            }
            catch (Exception ex)
            {
                WebMsg.MessageBox(ex.Message);
            }
        }
        /// <summary>
        /// 添加新用户数据
        /// </summary>
        void AddIllNess()
        {
            if (CheckDataAllright())
            {
                //TODO ----->>>>>>>>SendRequest To PHP
                string Url = Tool.addillnessdatasimplepath;
                string s   = JsonHelper.MergPlayerdataJson(mData.playerdata);

                QMsg msg = new WebMsg
                {
                    EventID  = (int)Web_E.POST,
                    url      = Url,
                    message  = s,
                    callback = (success, str) =>
                    {
                        if (success)
                        {
                            mData.playerdata.ID = JsonHelper.ParseNewIllDataID("data", str);
                            PlayerDataCenter.Instance.PlayerDatalist.Add(mData.playerdata);

                            //Tool.CopyFileAndRename(mData.playerdata.LocalUserModelPath, mData.playerdata.ID);
                            UIMgr.OpenPanel <UIFirstPage>(prefabName: "Resources/UIFirstPage");
                            CloseSelf();
                        }
                        else
                        {
                            //ShowPage<UINotice>(Tool.FaleToConnect);
                        }
                    }
                };
                SendMsg(msg);
            }
            else
            {
                string result = "请选择路径!!!";
                LoadModelResult(result);
            }
        }
        protected void btnSave_Click(object sender, EventArgs e)
        {
            var vUser = (NF.Framework.CurrentUser)HttpContext.Current.Session["CurrentUser"];

            if (vUser.Roles.Where(x => x.C_CODE == RoleCode).Any())
            {
                Save(true);
            }
            else
            {
                if (ltlStat.Text == "2" && !string.IsNullOrEmpty(hid.Value))
                {
                    if (qua.UpdateMoneyAndDate(txtPFMONEY.Value, txtPFDATE.Value, hid.Value))
                    {
                        WebMsg.MessageBox("保存成功");
                    }
                }
                else
                {
                    Save(true);
                }
            }
        }
    private void CommanCallUserControl(DataSet ds, string reporttype)
    {
        GetConnectionStringSTRING obj = new GetConnectionStringSTRING();

        connectionstring = obj.BAL_EpathshalaString();



        try
        {
            ReportControl1.ConnectionString = connectionstring;


            //reporttype = Server.MapPath("Files/MonthlySummary.xml");
            ReportControl1.XMLReportFile = Server.MapPath(reporttype);

            ReportControl1.Search(ds.Tables[0]);
        }
        catch (Exception ex)
        {
            WebMsg.Show("" + ex.Message.ToString());
        }
    }
Exemple #13
0
 protected void ClearControls()
 {
     try
     {
         ddlBMSAdd.SelectedValue = "0";
         txtLoginID.Text         = string.Empty;
         txtPassword.Text        = string.Empty;
         txtFirstName.Text       = string.Empty;
         txtMiddleName.Text      = string.Empty;
         txtLastName.Text        = string.Empty;
         txtContactNo.Text       = string.Empty;
         txtMobileNo.Text        = string.Empty;
         txtEmailID.Text         = string.Empty;
         //txtDateOfBirth.Text = string.Empty;
         txtAddress.Text = string.Empty;
         rdbGenderList.ClearSelection();
         rdbCountry.ClearSelection();
     }
     catch (Exception ex)
     {
         WebMsg.Show(ex.Message);
     }
 }
Exemple #14
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                //获取用户所属公司名称
                var BaseUser = (NF.Framework.CurrentUser)HttpContext.Current.Session["CurrentUser"];
                if (BaseUser != null)
                {
                    //初始化时间
                    DateTime dt = DateTime.Now;
                    Start.Value = dt.AddDays(-(dt.Day) + 1).ToString("yyy-MM-dd");
                    End.Value   = dt.AddMonths(1).AddDays(-(dt.Day)).ToString("yyy-MM-dd");

                    ltlUserID.Text = BaseUser.Id;
                    GetQuestion();
                    ByPageBind();
                }
                else
                {
                    WebMsg.CheckUserLogin();
                }
            }
        }
Exemple #15
0
    protected void grvStudentWiseResultAuto_RowDataBound(object sender, GridViewRowEventArgs e)
    {
        try
        {
            if (e.Row.RowType == DataControlRowType.DataRow)
            {
                Label  LblResultPerc = (Label)e.Row.FindControl("LblResultPerc");
                double Percentage    = 0;

                if (DataBinder.Eval(e.Row.DataItem, "RightAnswer").ToString() != string.Empty || DataBinder.Eval(e.Row.DataItem, "WrongAnswer").ToString() != string.Empty)
                {
                    Percentage = (((Convert.ToDouble(DataBinder.Eval(e.Row.DataItem, "RightAnswer").ToString())) * 100) / (Convert.ToDouble(DataBinder.Eval(e.Row.DataItem, "RightAnswer").ToString()) + Convert.ToDouble(DataBinder.Eval(e.Row.DataItem, "WrongAnswer").ToString())));
                }
                LblResultPerc.Text = Percentage.ToString("n2") + "%";

                //LblRightAnswerChart.Width = Unit.Percentage(RightPercentage);
            }
        }
        catch (Exception ex)
        {
            WebMsg.Show(ex.Message.ToString());
        }
    }
    protected void grdClassroomWiseAttendance_RowCreated(object sender, GridViewRowEventArgs e)
    {
        try
        {
            if (e.Row.RowType == DataControlRowType.Pager)
            {
                GridViewOperations GrvOperation = new GridViewOperations();
                GrvOperation.SetPagerButtonStates(grdClassroomWiseAttendance, e.Row, this.Page);
            }
            if (e.Row.RowType == System.Web.UI.WebControls.DataControlRowType.DataRow)
            {
                // when mouse is over the row, save original color to new attribute, and change it to highlight color
                e.Row.Attributes.Add("onmouseover", "this.originalstyle=this.style.backgroundColor;this.style.backgroundColor='#95DDDD';this.style.cursor='pointer'");

                // when mouse leaves the row, change the bg color to its original value
                e.Row.Attributes.Add("onmouseout", "this.style.backgroundColor=this.originalstyle;");
            }
        }
        catch (Exception ex)
        {
            WebMsg.Show(ex.Message);
        }
    }
Exemple #17
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         if (!string.IsNullOrEmpty(Request.QueryString["ID"]))
         {
             try
             {
                 ltlStepID.Text = Request.QueryString["ID"];
                 Mod_TS_ROLE mod = ts_role.GetModel(Request.QueryString["ID"]);
                 if (mod != null)
                 {
                     ltlRoleName.Text = mod.C_NAME;
                 }
                 GetList();
             }
             catch (Exception ex)
             {
                 WebMsg.MessageBox(ex.Message);
             }
         }
     }
 }
Exemple #18
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                var vUser = (NF.Framework.CurrentUser)HttpContext.Current.Session["CurrentUser"];
                if (vUser != null)
                {
                    ltlC_EMP_ID.Text   = vUser.Id;
                    ltlC_EMP_NAME.Text = vUser.Name;

                    if (!string.IsNullOrEmpty(Request.QueryString["ID"]))
                    {
                        ltlCon_No.Text = Request.QueryString["ID"];//合同号
                        Mod_TMO_CON modCon = tmo_con.GetModel(ltlCon_No.Text);
                        ltlCustNo.Text = modCon.C_CUST_NO;
                    }
                }
                else
                {
                    WebMsg.CheckUserLogin();
                }
            }
        }
Exemple #19
0
        //保存
        protected void btnSave_Click(object sender, EventArgs e)
        {
            try
            {
                var BaseUser = (NF.Framework.CurrentUser)HttpContext.Current.Session["CurrentUser"];

                Mod_TMB_NOTICE mod = new Mod_TMB_NOTICE();

                mod.C_CLASS    = dropClass.SelectedValue;
                mod.C_TITLE    = txtTitle.Text;
                mod.C_CONTENT  = content1.Value;
                mod.C_EMP_ID   = BaseUser.Id;
                mod.C_EMP_NAME = BaseUser.Name;
                if (notice.Add(mod))
                {
                    WebMsg.MessageBox("添加成功", "Notice.aspx");
                }
            }
            catch (Exception ex)
            {
                WebMsg.MessageBox(ex.Message);
            }
        }
    protected void btnFileTypeAdd_Click(object sender, EventArgs e)
    {
        obj_SYS_Chapter     = new SYS_Chapter();
        obj_BAL_SYS_Chapter = new SYS_Chapter_BLogic();

        obj_SYS_Chapter.filetype   = TxtFileType.Text;
        obj_SYS_Chapter.employeeid = Convert.ToInt64(Session["EmpolyeeID"]);

        int Result = obj_BAL_SYS_Chapter.BAL_SYS_FileType_Insert(obj_SYS_Chapter);

        if (Result == ((int)EnumFile.Result.FileAdded))
        {
            WebMsg.Show("File type Added Successfully.");
        }
        else
        {
            WebMsg.Show("File type Details already exists.");
        }
        object    s  = new object();
        EventArgs ea = new EventArgs();

        ddlTopic_SelectedIndexChanged(s, ea);
    }
Exemple #21
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                //获取用户所属公司名称
                var vUser = (NF.Framework.CurrentUser)HttpContext.Current.Session["CurrentUser"];

                if (vUser != null)
                {
                    Session["DT" + vUser.Id] = null;
                    ltlempid.Text            = vUser.Id;
                    ltlempname.Text          = vUser.Name;
                    txtzdr.Text = vUser.Name;
                    SetData();//初始化数据
                    GetDic();
                    txtfydt.Text = DateTime.Now.ToString("yyy-MM-dd");
                }
                else
                {
                    WebMsg.CheckUserLogin();
                }
            }
        }
    protected void grvSYS_Chapterdetail_Sorting(object sender, GridViewSortEventArgs e)
    {
        try
        {
            if (e.SortExpression.Trim() == this.SortField)
            {
                this.SortDirection = (this.SortDirection == "descending" ? "ascending" : "descending");
            }
            else
            {
                this.SortDirection = "ascending";
                this.SortField     = e.SortExpression;
                bindgrvSYS_Chapterdetail();
            }

            GridViewOperations GrvOperation = new GridViewOperations();
            GrvOperation.GrvSortingSetImage(e, grvSYS_Chapterdetail, this.SortDirection);
        }
        catch (Exception ex)
        {
            WebMsg.Show(ex.Message);
        }
    }
        /// <summary>
        /// 加载时运行
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                var User = (NF.Framework.CurrentUser)HttpContext.Current.Session["CurrentUser"];
                if (User != null)
                {
                    ltlEmpID.Text   = User.Id;
                    ltlEmpName.Text = User.Name;

                    if (!string.IsNullOrEmpty(Request.QueryString["ID"]))
                    {
                        ltlID.Text = Request.QueryString["ID"];

                        init_tree();
                    }
                }
                else
                {
                    WebMsg.CheckUserLogin();
                }
            }
        }
 protected void ddlBMSSearch_SelectedIndexChanged(object sender, EventArgs e)
 {
     try
     {
         if (ddlBMSSearch.SelectedValue != "0")
         {
             ddlSubjectSearch.Items.Clear();
             getSubjects(ddlSubjectSearch, int.Parse(ddlBMSSearch.SelectedValue));
             ddlSubjectSearch.Items.Insert(Convert.ToInt32(EnumFile.AssignValue.Zero), "-- Select --");
             ddlSubjectSearch.Items[0].Value = Convert.ToString((int)EnumFile.AssignValue.Zero);
         }
         else
         {
             ddlSubjectSearch.Items.Clear();
             ddlSubjectSearch.Items.Insert(Convert.ToInt32(EnumFile.AssignValue.Zero), "-- Select --");
             ddlSubjectSearch.Items[0].Value = Convert.ToString((int)EnumFile.AssignValue.Zero);
         }
     }
     catch (Exception ex)
     {
         WebMsg.Show(ex.Message);
     }
 }
 protected void grdClassroomWiseAttendance_RowDataBound(object sender, GridViewRowEventArgs e)
 {
     try
     {
         if (e.Row.RowType == DataControlRowType.DataRow)
         {
             for (int i = 1; i < e.Row.Cells.Count; i++)
             {
                 //add css to GridViewrow based on rowState
                 e.Row.CssClass = e.Row.RowState.ToString();
                 //Add onclick attribute to select row.
                 e.Row.Attributes.Add("onclick", String.Format("javascript:__doPostBack('ctl00$ContentPlaceHolder1$grdClassroomWiseAttendance','Select${0}')", e.Row.RowIndex));
             }
         }
     }
     catch (Exception ex)
     {
         WebMsg.Show(ex.Message.ToString());
     }
     finally
     {
     }
 }
        //计划申请
        protected void btnapply_Click(object sender, EventArgs e)
        {
            try
            {
                var vUser = (NF.Framework.CurrentUser)HttpContext.Current.Session["CurrentUser"];
                var mod   = new Mod_TMC_TRAIN_MAIN()
                {
                    C_ID      = randomnumber.GetTrainDayCode(),
                    C_EMPID   = vUser.Id,
                    C_EMPNAME = vUser.Name
                };

                if (tmc_train_main.Insert(mod))
                {
                    string url = "train_day_edit.aspx?ID=" + mod.C_ID;
                    Response.Redirect(url);
                }
            }
            catch (Exception ex)
            {
                WebMsg.MessageBox(ex.Message);
            }
        }
Exemple #27
0
 private void Query()
 {
     try
     {
         DataTable dt = null;
         dt = bll_Interface_FR.GetTMZJB(txtCKDH.Text.Trim(), Convert.ToDateTime(txtBegTime.Text), Convert.ToDateTime(txtEndTime.Text)).Tables[0];
         if (dt.Rows.Count > 0)
         {
             rptList.DataSource = dt;
             rptList.DataBind();
         }
         else
         {
             rptList.DataSource = null;
             rptList.DataBind();
             txtCKDH.Text = "";
         }
     }
     catch (Exception ex)
     {
         WebMsg.MessageBox(ex.ToString());
     }
 }
    /// <summary>
    /// Method wil be used to get product id.
    /// </summary>
    /// <returns>Returns string value</returns>
    public static string GetProductID()
    {
        string ProductID = string.Empty;

        try
        {
            Student_DashBoard_BLogic SBlogic = new Student_DashBoard_BLogic();
            DataSet dsProduct = new DataSet();
            dsProduct = SBlogic.BAL_Select_PaymentPagesInfo("Product");
            if (dsProduct != null & dsProduct.Tables.Count > 0)
            {
                if (dsProduct.Tables[0].Rows.Count > 0)
                {
                    ProductID = dsProduct.Tables[0].Rows[0]["value"].ToString();
                }
            }
        }
        catch (Exception ex)
        {
            WebMsg.Show(ex.Message);
        }
        return(ProductID);
    }
    protected void btnViewReport_Click(object sender, EventArgs e)
    {
        DataAccess da     = new DataAccess();
        ArrayList  arrlst = new ArrayList();

        arrlst.Add(new parameter("ReportType", "summury"));
        arrlst.Add(new parameter("StudentID", ddlStudents.SelectedValue));
        arrlst.Add(new parameter("Datefrom", txtFdate.Text));
        arrlst.Add(new parameter("dateto", txtTodate.Text));

        DataSet dsResult = da.DAL_Select("sp_StudentActivityTrackReport", arrlst);



        if (dsResult.Tables.Count > 0)
        {
            lblfooterdiv.Visible = true;
            lblFooterTotal.Text  = "TOTAL DURATION: " + dsResult.Tables[2].Rows[0][1].ToString();

            slblStudentValue.Text = dsResult.Tables[0].Rows[0]["FirstName"].ToString() + " " + dsResult.Tables[0].Rows[0]["LastName"].ToString();
            LblBMSValues.Text     = dsResult.Tables[0].Rows[0]["BMS"].ToString().Replace(">>", "-");
            LblPeriodValues.Text  = "From " + txtFdate.Text + " - " + "To : " + txtTodate.Text;

            div_general.Visible          = true;
            div_no_general_data.Visible  = false;
            div_reportdetails.Visible    = true;
            div_no_reportdetails.Visible = false;

            RptCtrlSessionSummury.Visible = true;
            RptCtrlSessionDetails.Visible = false;
            CommanCallUserControl(dsResult.Tables[1], "../ReportXMLFiles/StudentActivityTrackRPT.xml", 1);
        }
        else
        {
            WebMsg.Show("No data found.");
        }
    }
Exemple #30
0
    protected void btnFinishActStudent_Click(object sender, EventArgs e)
    {
        DataRow dtrow  = dtChapterDemo.NewRow();
        DataRow dtrow1 = dtTopicDemo.NewRow();

        var found = dtChapterDemo.Select("Chapter = '" + Session["DemoChapter"].ToString() + "'");

        if (found.Length != 0)
        {
        }
        else
        {
            dtrow["ChapterID"] = Session["DemoChapterID"];
            dtrow["Chapter"]   = Session["DemoChapter"].ToString();
            dtChapterDemo.Rows.Add(dtrow);
            Session["dtChapterDemo"]   = dtChapterDemo;
            Session["LastDemoChapter"] = Session["DemoChapter"].ToString();
        }

        var found1 = dtTopicDemo.Select("Topic = '" + Session["DemoTopic"].ToString() + "'");

        if (found1.Length != 0)
        {
        }
        else
        {
            dtrow1["ChapterID"] = Session["DemoChapterID"];
            dtrow1["TopicID"]   = Session["DemoTopicID"].ToString();
            dtrow1["Topic"]     = Session["DemoTopic"];
            dtTopicDemo.Rows.Add(dtrow1);
            Session["dtTopicDemo"]   = dtTopicDemo;
            Session["LastDemoTopic"] = Session["DemoTopic"].ToString();
        }

        WebMsg.Show("This topic covered sucessfully");
        Response.Redirect("../Dashboard/StudentDashboardDemo.aspx");
    }