Example #1
0
    private void btnAdd_Click(object sender, EventArgs e)
    {
        EquipmentMaintainFittingCollection equipmentMaintainFittingCollection = this.dgdFittingsDetail_GetData();

        equipmentMaintainFittingCollection.Add(new EquipmentMaintainFittingInfo
        {
            MaintainUniqueCode = (Guid)this.ViewState["MAINTAINUNIQUECODE"]
        });
        this.dgdFittingsDetail_Bind(equipmentMaintainFittingCollection);
    }
Example #2
0
        public static EquipmentMaintainFittingCollection GetMaintainFittingsList(Guid maintainUniqueCode)
        {
            EquipmentMaintainFittingCollection fittings = new EquipmentMaintainFittingCollection();

            using (DataTable table = publicDbOpClass.DataTableQuary("select * from Ent_Ept_MaintainFittings where MaintainUniqueCode = '" + maintainUniqueCode.ToString() + "'"))
            {
                for (int i = 0; i < table.Rows.Count; i++)
                {
                    fittings.Add(GetFittingInfoFrowDataRow(table.Rows[i]));
                }
            }
            return(fittings);
        }