public void LoadData() { try { if (this.biddingcode == "" || this.biddingcode == null) { return; } BLL.BiddingPrejudication bp = new BiddingPrejudication(); bp.BiddingCode = biddingcode; this.gvlist.DataSource = bp.GetBiddingPrejudications(); this.gvlist.DataBind(); } catch (Exception ex) { ApplicationLog.WriteLog(this.ToString(), ex, ""); } }
/// <summary> /// 保存数据,产生一条 /// </summary> private void SaveBiddingSupplier() { try { string BiddingPrejudicationCode = ""; BiddingPrejudication prejud = new BiddingPrejudication(); BiddingPrejudicationCode = prejud.GetLastPrejudicationCodeByBiddingCode(this.BiddingCode); if (BiddingPrejudicationCode == "" || BiddingPrejudicationCode == null) { prejud.BiddingCode = this.BiddingCode; prejud.CreateDate = DateTime.Today.ToString(); prejud.Flag = ""; prejud.Remark = ""; prejud.UserCode = ((User)Session["User"]).UserCode; prejud.BiddingPrejudicationAdd(); BiddingPrejudicationCode = prejud.BiddingPrejudicationCode; } BiddingSupplier cBiddingSupplier = new BiddingSupplier(); string strOrderCode = "1"; cBiddingSupplier.BiddingPrejudicationCode = BiddingPrejudicationCode; cBiddingSupplier.SupplierCode = this.HideSupplierCode.Value; cBiddingSupplier.NominateUser = ""; cBiddingSupplier.NominateDate = DateTime.Today.ToString(); cBiddingSupplier.UserCode = ((User)Session["User"]).UserCode; cBiddingSupplier.OrderCode = strOrderCode; cBiddingSupplier.State = ""; cBiddingSupplier.Flag = ""; cBiddingSupplier.BiddingSupplierAdd(); HideSupplierCode.Value = ""; } catch (Exception ex) { Response.Write(Rms.Web.JavaScript.Alert(true, ex.Message)); ApplicationLog.WriteLog(this.ToString(), ex, ""); } }