private void FaceToData(ref Advertising value) { value.Name = this.NameID.Text; value.Content = this.ContentID.Text; value.Remark = this.RemarkID.Text; value.Free = decimal.Parse(this.FreeID.Text); value.DeliveryDate = DateTime.Parse(this.DeliveryDateID.Text); value.WorkName = this.DropWorkNameID.Text; value.State = AspNetHelper.GetItemByDropDownValue(this.StateID); value.Evaluate = AspNetHelper.GetItemByDropDownValue(this.EvaluateID); value.Channel = AspNetHelper.GetItemByDropDownValue(this.ChannelID); value.Company = this.CurrentCompany; value.FiledIds = value.FiledIds + "," + Request.GetRequestValue("fileID").Trim(','); }
private void DataToFace(Advertising value) { if (value == null) { FreeID.Text = "0"; return; } this.NameID.Text = value.Name; this.ContentID.Text = value.Content; this.RemarkID.Text = value.Remark; this.FreeID.Text = value.Free.ToString(); this.DeliveryDateID.Text = value.DeliveryDate.ToShortDateString(); this.DropWorkNameID.Text = value.WorkName; AspNetHelper.SetDropDownSelectedvalue(this.StateID, value.State); AspNetHelper.SetDropDownSelectedvalue(this.EvaluateID, value.Evaluate); AspNetHelper.SetDropDownSelectedvalue(ChannelID, value.Channel); files.InnerHtml = AspNetHelper.DownLoadFile(value.FiledIds); }