Пример #1
0
    protected void populatedata()
    {
        RossSoft.Utility.AppConfig app = RossSoft.Utility.AppSettings();
        //client
        QuickappService.GetSubclients(dpsubclients, Convert.ToInt32(Session["Admin_Customer"].ToString()), false);
        //purpose
        QuickappService.GetPurposeList(dppurpose);
        //info
        QuickappService.Getmonth(drp_month);
        QuickappService.Getdate(drp_date);
        QuickappService.Getyear(drp_year, Convert.ToInt32(app.Startyear), Convert.ToInt32(app.Endyear), false);
        QuickappService.Getcountry(drpcountry);
        QuickappService.Getcountry(drpcountrybirth);
        //upper
        QuickappService.Getcountry(drp_upper_country);
        QuickappService.Getyear(drp_upper_startdate, Convert.ToInt32(app.Startyear), Convert.ToInt32(app.Endyear), false);

        //post
        QuickappService.Getcountry(drp_post_country);
        QuickappService.Getyear(drp_post_startdate, Convert.ToInt32(app.Startyear), Convert.ToInt32(app.Endyear), false);

        DataTable dt = new DataTable();

        //grid
        gvbind(GridView_UpperEdu, dt, "UpperEdu-header", true);
        gvbind(GridView_PostEdu, dt, "PostEdu-header", true);
    }
Пример #2
0
 protected void drp_upper_country_SelectedIndexChanged(object sender, EventArgs e)
 {
     clear(true, false);
     if (drp_upper_country.SelectedIndex != 0)
     {
         QuickappService.Getdegree(drp_upper_degree, 0, Convert.ToInt32(drp_upper_country.SelectedValue.ToString()), HttpContext.Current.Session["Admin_Customer"].ToString());
         QuickappService.Add_New(drp_upper_degree);
     }
 }
Пример #3
0
    public static List <string> GetmajorData(string prefix, string Country)
    {
        List <string> result = new List <string>();

        if (Country != "0")
        {
            result = QuickappService.GetmajorList(prefix, Country, HttpContext.Current.Session["Admin_Customer"].ToString());
        }
        return(result);
    }
Пример #4
0
    protected void SubmitApp()
    {
        DataTable dtinfo  = new DataTable();
        DataTable dtupper = new DataTable();
        DataTable dtpost  = new DataTable();

        if ((ViewState["InfoData"] != null) & (!ViewState["InfoData"].Equals("")))
        {
            dtinfo = (DataTable)ViewState["InfoData"];
        }
        if ((ViewState["UppereduData"] != null) & (!ViewState["UppereduData"].Equals("")))
        {
            dtupper = (DataTable)ViewState["UppereduData"];
        }

        if ((ViewState["PosteduData"] != null) & (!ViewState["PosteduData"].Equals("")))
        {
            dtpost = (DataTable)ViewState["PosteduData"];
        }

        string result = QuickappService.SubmitApplication(dtinfo, dtupper, dtpost, dpsubclients.SelectedValue.ToString());

        int ncount = result.IndexOf("|");

        if (ncount > 0)
        {
            string[] Spliter  = result.Split('|');
            string   fileno   = Spliter[0].ToString();
            string   error    = Spliter[1].ToString();
            string   Isresult = Spliter[2].ToString();

            txtfileno.InnerText = fileno;
            txtstatus.InnerText = Isresult;
            txterror.InnerText  = error;
        }
    }
Пример #5
0
 protected void drp_post_enddate_SelectedIndexChanged(object sender, EventArgs e)
 {
     RossSoft.Utility.AppConfig app = RossSoft.Utility.AppSettings();
     QuickappService.Getyear(drp_post_compdate, Convert.ToInt32(drp_post_enddate.SelectedValue.ToString()), Convert.ToInt32(app.Endyear), true);
 }