public AjaxResult SaleList([FromBody] dynamic Json) { AjaxResult result = new AjaxResult(); string UserName = Json.UserName; //用户名 string UserCode = Json.UserCode; //员工编号 DataTable dt = ts_user.GetSales1(UserName, UserCode).Tables[0]; result.Code = DoResult.Success; result.Result = SerializationHelper.Dtb2Json(dt); return(result); }
private void GetSales() { DataTable dt = ts_user.GetSales1(txtName.Text, txtCode.Text).Tables[0]; if (dt.Rows.Count > 0) { rptList.DataSource = dt; rptList.DataBind(); } else { rptList.DataSource = null; rptList.DataBind(); } }