protected override string[] FormatExportRecord(object obj) { CusItemCodeCheckList ciccl = obj as CusItemCodeCheckList; return(new string[] { ciccl.ModelCode.ToString(), ciccl.ItemCode.ToString(), ciccl.CustomerCode.ToString(), ciccl.CustomerModelCode.ToString(), ciccl.CustomerItemCode.ToString(), ciccl.Character.ToString(), ciccl.MaintainUser.ToString(), FormatHelper.ToDateString(ciccl.MaintainDate), FormatHelper.ToTimeString(ciccl.MaintainTime) }); }
protected override Infragistics.WebUI.UltraWebGrid.UltraGridRow GetGridRow(object obj) { CusItemCodeCheckList ciccl = obj as CusItemCodeCheckList; return(new Infragistics.WebUI.UltraWebGrid.UltraGridRow( new object[] { "false", ciccl.ModelCode.ToString(), ciccl.ItemCode.ToString(), ciccl.CustomerCode.ToString(), ciccl.CustomerModelCode.ToString(), ciccl.CustomerItemCode.ToString(), ciccl.Character.ToString(), ciccl.MaintainUser.ToString(), FormatHelper.ToDateString(ciccl.MaintainDate), FormatHelper.ToTimeString(ciccl.MaintainTime), "" })); }
protected override object GetEditObject() { if (_facade == null) { _facade = new RMAFacade(base.DataProvider); } CusItemCodeCheckList cicl = this._facade.CreateNewCusItemCodeCheckList(); cicl.ModelCode = FormatHelper.PKCapitalFormat(FormatHelper.CleanString(this.txtModelCodeEdit.Text, 40)); cicl.ItemCode = FormatHelper.PKCapitalFormat(FormatHelper.CleanString(this.txtItemCodeEdit.Text, 40)); cicl.CustomerCode = FormatHelper.PKCapitalFormat(FormatHelper.CleanString(this.txtCusCodeEdit.Text, 40)); cicl.CustomerModelCode = FormatHelper.PKCapitalFormat(FormatHelper.CleanString(this.txtCusModelCodeEdit.Text, 40)); cicl.CustomerItemCode = FormatHelper.PKCapitalFormat(FormatHelper.CleanString(this.txtCusItemCodeEdit.Text, 40)); cicl.Character = FormatHelper.CleanString(this.txtCharacterEdit.Text, 40); cicl.MaintainUser = this.GetUserCode(); return(cicl); }
protected override void SetEditObject(object obj) { if (obj == null) { this.txtModelCodeEdit.Text = string.Empty; this.txtItemCodeEdit.Text = string.Empty; this.txtCusCodeEdit.Text = string.Empty; this.txtCusModelCodeEdit.Text = string.Empty; this.txtCusItemCodeEdit.Text = string.Empty; this.txtCharacterEdit.Text = string.Empty; return; } CusItemCodeCheckList ciccl = obj as CusItemCodeCheckList; this.txtModelCodeEdit.Text = ciccl.ModelCode.ToString(); this.txtItemCodeEdit.Text = ciccl.ItemCode.ToString(); this.txtCusCodeEdit.Text = ciccl.CustomerCode.ToString(); this.txtCusModelCodeEdit.Text = ciccl.CustomerModelCode.ToString(); this.txtCusItemCodeEdit.Text = ciccl.CustomerItemCode.ToString(); this.txtCharacterEdit.Text = ciccl.Character.ToString(); }