private Affiche CreateAffiche(DataRow dr) { Affiche affiche = new Affiche(); affiche.AfficheNumber = dr["AfficheNum"].ToString(); affiche.CountyId = Convert.ToInt32(dr["CountyId"]); affiche.CreateTime = Convert.ToDateTime(dr["CreateDatetime"]); affiche.CreatorId = Convert.ToInt32(dr["CreatorId"]); affiche.AfficheType = "网上交易公告"; affiche.ComeForm = dr["ComeForm"].ToString(); affiche.IsRelease = Convert.ToInt32(dr["IsRelease"]) == 1; affiche.Notice = dr["Notice"].ToString(); affiche.OtherContent = dr["afficheOther"].ToString(); affiche.QualificationRequire = dr["Require"].ToString(); affiche.RatificationNumber = dr["AffichePassCode"].ToString(); affiche.RatificationOrg = dr["AffichePassUnit"].ToString(); affiche.ReleaseTime = Convert.ToDateTime(dr["updatedatetime"]); if (dr["ReleasedateTime"] != DBNull.Value) { affiche.UpdateTime = Convert.ToDateTime(dr["ReleasedateTime"]); } affiche.SellModel = "网上挂牌"; affiche.SignBeginTime = Convert.ToDateTime(dr["SignBeginTime"]); affiche.SignEndTime = Convert.ToDateTime(dr["SignEndTime"]); affiche.TradeBeginTime = Convert.ToDateTime(dr["TradeBeginTime"]); affiche.TradeEndTime = Convert.ToDateTime(dr["TradeEndTime"]); affiche.Title = dr["Title"].ToString(); affiche.VerifyStatus = Tlw.ZPG.Domain.Enums.AfficheVerifyStatus.None; return affiche; }
/// <summary> /// 补充公告 /// </summary> /// <param name="affiche">新公告</param> public void Supply(int userId, Affiche affiche) { if (affiche == null) { throw new ReplenishException("补充公告不能为空"); } if (userId != this.CreatorId) { throw new ReplenishException("你不是公告创建者,不能补充公告"); } if (!this.IsRelease) { throw new ReplenishException("原公告没有发布之前不能补充公告"); } //不能对已经补充的公告再次进行补充,系统自动对原公告进行补充 if (this.ParentId.HasValue) { affiche.Parent = this.Parent; } else { affiche.Parent = this; } }
/// <summary> /// ���乫�� /// </summary> /// <param name="affiche">�¹���</param> public void Supply(int userId, Affiche affiche) { if (affiche == null) { throw new ReplenishException("���乫�治��Ϊ��"); } if (userId != this.CreatorId) { throw new ReplenishException("�㲻�ǹ��洴���ߣ����ܲ��乫��"); } if (!this.IsRelease) { throw new ReplenishException("ԭ����û�з���֮ǰ���ܲ��乫��"); } //���ܶ��Ѿ�����Ĺ����ٴν��в��䣬ϵͳ�Զ���ԭ������в��� if (this.ParentId.HasValue) { affiche.Parent = this.Parent; } else { affiche.Parent = this; } }
private void SetAfficheContent(Affiche affiche) { var templete = System.IO.File.ReadAllText("affiche.html"); affiche.FormatContent(templete); affiche.Content = affiche.Content.Replace("{Affiche_HandModeAndBidMethod}", "1、采取在“福建省国有建设用地使用权出让网上交易系统”挂牌的方式进行。 竞买申请人登录“福建省国有建设用地使用权出让网上交易系统”(以下简称网上交易系统)注册登记,提出竞买申请,经挂牌人审查确认,获得登录网上交易系统的竞买号和初始交易密码,在规定的期间内登录网上交易系统进行网上报价和竞买等。<br/> 2、竞买人初次报价可等于或大于挂牌起始价,之后每次报价必须比当前最高报价递增一个加价幅度以上的价格(不要求按加价幅度的整数倍报价)。挂牌出让按照价高者得的原则确定竞得人。"); }