Esempio n. 1
0
 private void LoadDDLDept()
 {
     BasicData bd = new BasicData();
     ddlDept.DataSource = bd.GetDeptInQCFactDept(ddlFact.SelectedValue);
     ddlDept.DataTextField = "dept_name";
     ddlDept.DataValueField = "dept_no";
     ddlDept.DataBind();
     ddlDept.Items.Insert(0, new ListItem("--ALL--", ""));
 }
Esempio n. 2
0
    private void GetDept()
    {
        string str_return = "";
        string fact_no = Request.Params["fact_no"];

        BasicData bd = new BasicData();
        DataTable dt = bd.GetDeptInQCFactDept(fact_no);

        foreach (DataRow row in dt.Rows)
        {
            string value = row["dept_no"].ToString().Trim();
            string text = row["dept_no"].ToString().Trim();

            str_return += value + ":" + text + ";";
        }

        if (str_return.Length > 0)
            str_return = str_return.Substring(0, str_return.Length - 1);

        ReturnServer(str_return);
    }