Ejemplo n.º 1
0
		protected override object GetEditObject()
		{
			if(_facade==null){_facade = new  FacadeFactory(base.DataProvider).CreateRMAFacade();}
			ErrorSymptom es = this._facade.CreateNewErrorSymptom();
			es.SymptomCode = FormatHelper.PKCapitalFormat(FormatHelper.CleanString(this.txtSymptomEdit.Text,40));
			es.Description	= FormatHelper.CleanString( this.txtDescEdit.Text, 200);
			es.MaintainUser			= this.GetUserCode();

			return es;
		}
Ejemplo n.º 2
0
		protected override string[] FormatExportRecord( object obj )
		{
			ErrorSymptom es = obj as ErrorSymptom;	
			return new string[]{  
								   es.SymptomCode.ToString(),
								   es.Description.ToString(),
								   es.MaintainUser.ToString(),
								   FormatHelper.ToDateString(es.MaintainDate),
								   FormatHelper.ToTimeString(es.MaintainTime)
							   };
		}
Ejemplo n.º 3
0
		protected override Infragistics.WebUI.UltraWebGrid.UltraGridRow GetGridRow(object obj)
		{
			ErrorSymptom es = obj as ErrorSymptom;	
			return new Infragistics.WebUI.UltraWebGrid.UltraGridRow( 
				new object[]{"false",
								es.SymptomCode.ToString(),
								es.Description.ToString(),
								es.MaintainUser.ToString(),
								FormatHelper.ToDateString(es.MaintainDate),
								FormatHelper.ToTimeString(es.MaintainTime),
								""});
		}
Ejemplo n.º 4
0
		protected override void SetEditObject(object obj)
		{
			if (obj == null)
			{
				this.txtSymptomEdit.Text = string.Empty;
				this.txtDescEdit.Text = string.Empty;
				return;
			}

			ErrorSymptom es = obj as ErrorSymptom;
			this.txtSymptomEdit.Text = es.SymptomCode.ToString();
			this.txtDescEdit.Text = es.Description.ToString();
		}