Exemplo n.º 1
0
        public AjaxResult GetCompany([FromBody] dynamic Json)
        {
            string CustName = Json.CustName; //搜索条件:客户

            #region                          //数据操作
            AjaxResult result = new AjaxResult();
            result.Code   = DoResult.Success;
            result.Result = SerializationHelper.Dtb2Json(ts_custfile.GetListByPage(50, 1, "", CustName).Tables[0]);
            #endregion

            return(result);
        }
Exemplo n.º 2
0
        private void BindList()
        {
            DataTable dt = ts_custfile.GetListByPage(50, 1, txtcustNo.Text, txtName.Text).Tables[0];

            if (dt.Rows.Count > 0)
            {
                rptList.DataSource = dt;
                rptList.DataBind();
            }
            else
            {
                rptList.DataSource = null;
                rptList.DataBind();
            }
        }
Exemplo n.º 3
0
 private void BindList()
 {
     if (!string.IsNullOrEmpty(txtName.Text))
     {
         DataTable dt = ts_custfile.GetListByPage(50, 1, "", txtName.Text).Tables[0];
         if (dt.Rows.Count > 0)
         {
             rptList.DataSource = dt;
             rptList.DataBind();
         }
         else
         {
             rptList.DataSource = null;
             rptList.DataBind();
         }
     }
     else
     {
         rptList.DataSource = null;
         rptList.DataBind();
     }
 }
Exemplo n.º 4
0
 /// <summary>
 /// 获取数据列表
 /// </summary>
 private void GetListBind()
 {
     rptCust.DataSource = ts_custfile.GetListByPage(Pager1.PageSize, Pager1.CurrentPageIndex, txtCustCode.Value, txtCustName.Value);
     rptCust.DataBind();
 }