public void InitializeApp() { DS_Hhyjb = B_Hhyjb.GetList("id>=0" + common_file.common_app.yydh_select + " order by id"); bindingSource1.DataSource = DS_Hhyjb.Tables[0]; dg_count = DS_Hhyjb.Tables[0].Rows.Count; this.dg_hyjb.AutoGenerateColumns = false; }
//根据类型读出系数 public int Getjbxs(string hyrx) { int s = 0; DataSet ds_rx = B_hyjb.GetList("id>=0 and yydh='" + common_file.common_app.yydh + "' and hyrx='" + hyrx + "'"); if (ds_rx.Tables[0].Rows.Count > 0) { s = int.Parse(ds_rx.Tables[0].Rows[0]["jbxs"].ToString()); } return(s); }