Пример #1
0
 private void BindDataGrid()
 {
     this.eaList = EquipmentAttemperAction.GetAttemperList(this.hdnequipmentcode.Value);
     this.GrdAttemper.DataSource = this.eaList;
     this.GrdAttemper.DataBind();
     this.labState.Text = "共" + this.eaList.Count.ToString() + "条记录!";
 }
Пример #2
0
        public static EquipmentAttemperCollection GetAttemperList(string equipmentCode)
        {
            EquipmentAttemperCollection attempers = new EquipmentAttemperCollection();

            using (DataTable table = publicDbOpClass.DataTableQuary("select * from Ent_Ept_Attemper where EquipmentUniqueCode = '" + equipmentCode + "' order by BeginDate desc"))
            {
                for (int i = 0; i < table.Rows.Count; i++)
                {
                    attempers.Add(GetEquipmentAttemperInfoFromDataRow(table.Rows[i]));
                }
            }
            return(attempers);
        }