public void InitializeApp() { DS_Xxfxr = B_Xxfxr.GetList("id>=0" + common_file.common_app.yydh_select + " order by id"); bindingSource1.DataSource = DS_Xxfxr.Tables[0]; dg_count = DS_Xxfxr.Tables[0].Rows.Count; this.dg_xfsz.AutoGenerateColumns = false; }
public string Getxrbh(string xfxr) { string xrbh = ""; BLL.Xxfxr B_Xxfdr = new BLL.Xxfxr(); Model.Xxfxr M_Xxfdr = new Model.Xxfxr(); DataSet ds = B_Xxfdr.GetList("xfxr='" + xfxr + "'"); if (ds.Tables[0].Rows.Count > 0) { xrbh = ds.Tables[0].Rows[0]["xrbh"].ToString(); } else { xrbh = ""; } return(xrbh); }