public void LoadData(int id) { m_Model = Library.Controller.SystemManager.Instance.Services.EquipmentService.GetModel(id); this.txtName.Text = m_Model.F_Name; this.txtF_Decs.Text = m_Model.F_Decs; if (m_Model.F_Order != null) { this.txtF_Order.Text = m_Model.F_Order.Value.ToString(); } }
/// <summary> /// 更新一条数据 /// </summary> public bool Update(Library.Model.Equipment model) { return(dal.Update(model)); }
/// <summary> /// 增加一条数据 /// </summary> public int Add(Library.Model.Equipment model) { return(dal.Add(model)); }