private void bindList() { SearchProductType con = new SearchProductType(); con.ProductTypeName = txtProductType.Text.Trim().ToString(); if (rbtnIsChinese.Checked == true) { con.IsEnglish = 1; } else if (rbtnIsEnglish.Checked == true) { con.IsEnglish = 2; } Pagination pagina = new Pagination(pager.PageIndex, pager.PageSize, 0); using (BLLProductType bll = new BLLProductType()) { List <ProductType> lists = bll.GetPageList(con, pagina, CompanyInformationType.ID_FieldName, ScriptQuery.SortEnum.DESC); pager.RecordCount = pagina.RecordCount; pager.PageCount = pagina.PageCount; grid_friendlink.DataSource = lists; grid_friendlink.DataBind(); } }
private void MeunBind() { using (BLLProductType bll = new BLLProductType()) { SearchProductType cond = new SearchProductType(); cond.IsEnglish = 1; List <ProductType> lists = bll.GetList(cond); rptProType.DataSource = lists; rptProType.DataBind(); } }
private void ShowMenu() { SearchProductType snt = new SearchProductType(); snt.IsEnglish = 1; //Pagination pagination = new DevNet.Common.Pagination(1,10, 0); using (BLLProductType bll = new BLLProductType()) { List <ProductType> lists = bll.GetList(snt); rptProducttype.DataSource = lists; rptProducttype.DataBind(); } }
private void getProtypeList() { SearchProductType search = new SearchProductType(); using (BLLProductType bll = new BLLProductType()) { DataTable dt = bll.GetTable(search); if (dt != null) { ddlProductTypeID.DataSource = dt; ddlProductTypeID.DataTextField = ProductType.ProductTypeName_FieldName; ddlProductTypeID.DataValueField = ProductType.ID_FieldName; ddlProductTypeID.DataBind(); } } }
private void getProtypeList() { SearchProductType search = new SearchProductType(); using (BLLProductType bll = new BLLProductType()) { DataTable dt = bll.GetTable(search); if (dt != null) { ddlProductTypeName.DataSource = dt; ddlProductTypeName.DataTextField = ProductType.ProductTypeName_FieldName; ddlProductTypeName.DataValueField = ProductType.ID_FieldName; ddlProductTypeName.DataBind(); ddlProductTypeName.Items.Insert(0, new ListItem("==请选择类型==", "0")); } } }