Ejemplo n.º 1
0
        private void BindArea()
        {
            var       vUser = (NF.Framework.CurrentUser)HttpContext.Current.Session["CurrentUser"];
            var       cust  = vUser.CustFile;
            DataTable dt    = tmo_order.GetCustRollArea(cust.C_NAME).Tables[0];

            if (dt.Rows.Count > 0)
            {
                dropArea.DataSource     = dt;
                dropArea.DataTextField  = "C_SALE_AREA";
                dropArea.DataValueField = "C_SALE_AREA";
                dropArea.DataBind();
                dropArea.Items.Insert(0, new ListItem("全部区域", ""));
            }
            else
            {
                dropArea.DataSource = null;
                dropArea.DataBind();
            }
        }