protected override object GetEditObject(GridRecord row) { if (_facade == null) { _facade = new BenQGuru.eMES.Material.EquipmentFacade(this.DataProvider); } object obj = _facade.GetEquipmentTsType(row.Items.FindItemByKey("EQPTsType").Text.ToString()); if (obj != null) { return((Domain.Equipment.EquipmentTsType)obj); } return(null); }
protected string GetEqpTSTypeDesc(string tsType) { if (_facade == null) { _facade = new BenQGuru.eMES.Material.EquipmentFacade(base.DataProvider); } object obj = _facade.GetEquipmentTsType(tsType); if (obj != null) { return((obj as Domain.Equipment.EquipmentTsType).Eqptstypedesc); } return(" "); }