Exemple #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            MultiView1.ActiveViewIndex = 0;
            if (!string.IsNullOrEmpty(Request["Cr"]))
            {
                btc.Msg_Head(Img1, MsgHead, true, Request["ckmode"], Convert.ToInt32(Request["Cr"]));
            }

            //àªç¤»Õ§º»ÃÐÁÒ³
            btc.ckBudgetYear(lblSearchYear, lblYear);

            string mode = Request.QueryString["mode"];
            if (!string.IsNullOrEmpty(mode))
            {
                switch (mode.ToLower())
                {
                case "1":
                    MultiView1.ActiveViewIndex = 1;
                    getddlYear(1);
                    btc.getddlMainDepartment(1, ddlMainDept, null);
                    btc.getddlMainSubDepartment(1, ddlMainSubDept, ddlMainDept.SelectedValue, null);
                    btc.getddlDepartment(1, ddlDepartment, ddlMainSubDept.SelectedValue, null, null);
                    btc.GenSort(txtSort, "StrategicPlan", " And StudyYear = '" + ddlYearB.SelectedValue + "' And DeptCode = '" + ddlDepartment.SelectedValue + "' ");
                    Page.ClientScript.RegisterStartupScript(Page.GetType(), Guid.NewGuid().ToString(), "Cktxt(0);", true);
                    break;

                case "2":
                    MultiView1.ActiveViewIndex = 1;
                    getddlYear(1);
                    btc.btEnable(btSaveAgain, false);
                    GetData(Request.QueryString["id"]);
                    break;

                case "3":
                    MultiView1.ActiveViewIndex = 0;
                    Delete(Request.QueryString["id"]);
                    btc.CopyEnable(lblCopy, ddlOldYear, btCopy, "StrategicPlan", ddlSearchYear.SelectedValue);
                    break;
                }
            }
            else
            {
                getddlYear(0);
                btc.CopyEnable(lblCopy, ddlOldYear, btCopy, "StrategicPlan", ddlSearchYear.SelectedValue);
                btc.getddlMainDepartment(0, ddlSearchMainDept, Cookie.GetValue2("ckMainDeptID"));
                btc.getddlMainSubDepartment(0, ddlSearchMainSubDept, ddlSearchMainDept.SelectedValue, Cookie.GetValue2("ckMainSubDeptID"));
                btc.getddlDepartment(0, ddlSearchDept, ddlSearchMainSubDept.SelectedValue, Cookie.GetValue2("ckDeptID"), null);
                btc.CkAdmissionForAdmin(GridView1, btAdd, null);
                DataBind();
            }
        }
        txtStrategicPlan.Attributes.Add("onkeyup", "Cktxt(0);");
        txtSort.Attributes.Add("onkeyup", "Cktxt(0);");
        ddlDepartment.Attributes.Add("onchange", "Cktxt(0);");
    }
Exemple #2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            MultiView1.ActiveViewIndex = 0;
            if (!string.IsNullOrEmpty(Request.QueryString["Cr"]))
            {
                btc.Msg_Head(Img1, MsgHead, true, Request.QueryString["ckmode"], Convert.ToInt32(Request.QueryString["Cr"]));
            }

            //àªç¤»Õ§º»ÃÐÁÒ³
            btc.ckBudgetYear(lblSearchYear, lblYear);

            string mode = Request.QueryString["mode"];
            if (!string.IsNullOrEmpty(mode))
            {
                switch (mode.ToLower())
                {
                case "1":
                    MultiView1.ActiveViewIndex = 1;
                    ClearAll();
                    getddlYear(1);
                    btc.GenSort(txtSort, "Strategies", " And StudyYear = '" + ddlYearS.SelectedValue + "' And SchoolID = '" + CurrentUser.SchoolID + "' ");
                    Page.ClientScript.RegisterStartupScript(Page.GetType(), Guid.NewGuid().ToString(), "Cktxt(0);", true);
                    break;

                case "2":
                    MultiView1.ActiveViewIndex = 1;
                    ClearAll();
                    getddlYear(1);
                    btc.btEnable(btSaveAgain, false);
                    GetData(Request.QueryString["id"]);
                    break;

                case "3":
                    MultiView1.ActiveViewIndex = 0;
                    Delete(Request.QueryString["id"]);
                    break;
                }
            }
            else
            {
                getddlYear(0);
                btc.CopyEnable(lblCopy, ddlOldYear, btCopy, "Strategies", ddlSearchYear.SelectedValue);
                btc.CkAdmissionForAdmin(GridView1, btAdd, null);
                DataBind();
            }
        }
        txtStrategies.Attributes.Add("onkeyup", "Cktxt(0);");
        txtSort.Attributes.Add("onkeyup", "Cktxt(0);");
        txtIndicators2.Attributes.Add("onkeyup", "ckAddIndicators();");
    }
Exemple #3
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            MultiView1.ActiveViewIndex = 0;
            if (!string.IsNullOrEmpty(Request["Cr"]))
            {
                btc.Msg_Head(Img1, MsgHead, true, Request["ckmode"], Convert.ToInt32(Request["Cr"]));
            }

            //àªç¤»Õ§º»ÃÐÁÒ³
            btc.ckBudgetYear(lblSearchYear, lblYear);

            string mode = Request["mode"];
            if (!string.IsNullOrEmpty(mode))
            {
                switch (mode.ToLower())
                {
                case "1":
                    MultiView1.ActiveViewIndex = 1;
                    txtStudyYear.Text          = (DateTime.Now.Year + 543).ToString();
                    Page.ClientScript.RegisterStartupScript(Page.GetType(), Guid.NewGuid().ToString(), "Cktxt(0);", true);
                    break;

                case "2":
                    MultiView1.ActiveViewIndex = 1;
                    GetData(Request["id"]);
                    break;

                case "3":
                    MultiView1.ActiveViewIndex = 0;
                    Delete(Request["id"]);
                    break;

                case "7":
                    MultiView1.ActiveViewIndex = 0;
                    IsFinality(Request["sYear"], Convert.ToBoolean(Convert.ToInt32(Request["sts"])));
                    DataBind();
                    break;
                }
            }
            else
            {
                btc.CkAdmissionForAdmin(GridView1, btAdd, null);
                DataBind();
            }
        }
        txtStudyYear.Attributes.Add("onkeyup", "Cktxt(0);");
    }
Exemple #4
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            MultiView1.ActiveViewIndex = 0;
            if (!string.IsNullOrEmpty(Request["Cr"]))
            {
                btc.Msg_Head(Img1, MsgHead, true, Request["ckmode"], Convert.ToInt32(Request["Cr"]));
            }

            string mode = Request["mode"];
            if (!String.IsNullOrEmpty(mode))
            {
                switch (mode.ToLower())
                {
                case "1":
                    MultiView1.ActiveViewIndex = 1;
                    getddlScoreGroup(1);
                    Page.ClientScript.RegisterStartupScript(Page.GetType(), Guid.NewGuid().ToString(), "Cktxt(0);", true);
                    break;

                case "2":
                    MultiView1.ActiveViewIndex = 1;
                    getddlScoreGroup(1);
                    btc.btEnable(btSaveAgain, false);
                    GetData(Request["id"]);
                    break;

                case "3":
                    MultiView1.ActiveViewIndex = 0;
                    Delete(Request["id"]);
                    break;
                }
            }
            else
            {
                btc.CkAdmissionForAdmin(GridView1, btAdd, null);
                getddlScoreGroup(0);
                DataBind();
            }
        }
        ddlScoreGroup.Attributes.Add("onchange", "Cktxt(0);");
        txtDetail.Attributes.Add("onkeyup", "Cktxt(0);");
        txtCriterion.Attributes.Add("onkeyup", "Cktxt(0);");
        txtTranslation.Attributes.Add("onkeyup", "Cktxt(0);");
        txtMin.Attributes.Add("onkeyup", "Cktxt(0);");
        txtMax.Attributes.Add("onkeyup", "Cktxt(0);");
    }
Exemple #5
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            MultiView1.ActiveViewIndex = 0;
            if (!string.IsNullOrEmpty(Request.QueryString["Cr"]))
            {
                btc.Msg_Head(Img1, MsgHead, true, Request.QueryString["ckmode"], Convert.ToInt32(Request.QueryString["Cr"]));
            }

            string mode = Request.QueryString["mode"];
            if (!string.IsNullOrEmpty(mode))
            {
                switch (mode.ToLower())
                {
                case "1":
                    MultiView1.ActiveViewIndex = 1;
                    btc.GenSort(txtSort, "IdentityName", "");
                    Page.ClientScript.RegisterStartupScript(Page.GetType(), Guid.NewGuid().ToString(), "Cktxt(0);", true);
                    break;

                case "2":
                    MultiView1.ActiveViewIndex = 1;
                    btc.btEnable(btSaveAgain, false);
                    GetData(Request.QueryString["id"]);
                    break;

                case "3":
                    MultiView1.ActiveViewIndex = 0;
                    Delete(Request.QueryString["id"]);
                    break;
                }
            }
            else
            {
                btc.CkAdmissionForAdmin(GridView1, btAdd, null);
                DataBind();
            }
        }
        txtIdentityName.Attributes.Add("onkeyup", "Cktxt(0);");
        txtSort.Attributes.Add("onkeyup", "Cktxt(0);");
    }
Exemple #6
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            MultiView1.ActiveViewIndex = 0;
            if (!string.IsNullOrEmpty(Request["Cr"]))
            {
                btc.Msg_Head(Img1, MsgHead, true, Request["ckmode"], Convert.ToInt32(Request["Cr"]));
            }

            lblTitle1.Text     = "µÑǺ觪Õé";
            lblTitle2.Text     = "µÑǺ觪Õé";
            lblSideSearch.Text = "Áҵðҹ";
            lblStandardNo.Text = "µÑǺ觪Õé·Õè";
            lblSide.Text       = "Áҵðҹ";
            lblStandard.Text   = "µÑǺ觪Õé";
            GridView1.Columns[0].HeaderText = "µÑǺ觪Õé·Õè";
            GridView1.Columns[1].HeaderText = "ª×è͵ÑǺ觪Õé";
            GridView2.Columns[0].HeaderText = "µÑǺ觪Õé·Õè";
            GridView2.Columns[1].HeaderText = "ª×è͵ÑǺ觪Õé";
            btAdd.Text          = "       ÊÃéÒ§µÑǺ觪ÕéãËÁè";
            btAdd.ToolTip       = "ÊÃéÒ§µÑǺ觪ÕéãËÁè";
            btSave.ToolTip      = "ºÑ¹·Ö¡µÑǺ觪Õé¹Õé";
            btSaveAgain.Text    = "       ºÑ¹·Ö¡áÅÐÊÃéÒ§µÑǺ觪ÕéãËÁè";
            btSaveAgain.ToolTip = "ºÑ¹·Ö¡µÑǺ觪Õé¹ÕéáÅÐÊÃéÒ§µÑǺ觪ÕéãËÁè";

            //àªç¤»Õ§º»ÃÐÁÒ³
            btc.ckBudgetYear(lblSearchYear, lblYear);

            btc.LinkReport(linkReport);

            string mode = Request["mode"];
            if (!string.IsNullOrEmpty(mode))
            {
                switch (mode.ToLower())
                {
                case "1":
                    MultiView1.ActiveViewIndex = 1;
                    getddlYear(1);
                    getddlSide(1, ddlYearB.SelectedValue);
                    //getddlScoreGroup();
                    btc.GenSort(txtSort, "Standard", " And StudyYear = '" + ddlYearB.SelectedValue + "' And SideCode = '" + ddlSide.SelectedValue + "'");
                    Page.ClientScript.RegisterStartupScript(Page.GetType(), Guid.NewGuid().ToString(), "Cktxt(0);", true);
                    break;

                case "2":
                    MultiView1.ActiveViewIndex = 1;
                    getddlYear(1);
                    //getddlScoreGroup();
                    btc.btEnable(btSaveAgain, false);
                    GetData(Request["id"]);
                    break;

                case "3":
                    MultiView1.ActiveViewIndex = 0;
                    Delete(Request["id"]);
                    break;
                }
            }
            else
            {
                getddlYear(0);
                getddlSide(0, ddlSearchYear.SelectedValue);
                btc.CkAdmissionForAdmin(GridView1, btAdd, null);
                DataBind();
            }
        }
        txtStandard.Attributes.Add("onkeyup", "Cktxt(0);");
        ddlSide.Attributes.Add("onchange", "Cktxt(0);");
        //ddlScoreGroup.Attributes.Add("onchange", "Cktxt(0);");
        txtSort.Attributes.Add("onkeyup", "Cktxt(0);");
    }