/// **************************************************************************** /// <summary> /// 初始化 /// </summary> /// **************************************************************************** private void InitPage() { string ApplicationCode = Request["BiddingEmitCode"] + ""; this.BiddingEmitModify1.ApplicationCode = ApplicationCode; this.BiddingReturnModify1.BiddingEmitCode = ApplicationCode; this.BiddingReturnModify1.ApplicationCode = "NotIsNew"; if (Request["State"] + "" == "edit") { BiddingEmitModify1.State = WorkFlowControl.ModuleState.Eyeable; BiddingReturnModify1.State = WorkFlowControl.ModuleState.Operable; this.btnSave.Visible = true; } else if (Request["State"] + "" == "view") { BiddingEmitModify1.State = WorkFlowControl.ModuleState.Eyeable; BiddingReturnModify1.State = WorkFlowControl.ModuleState.Other; BiddingReturnModify1.BiddingEmitCode = ApplicationCode; this.btnSave.Visible = false; } if (Request["NowState"] + "" == "6") { Lb_Title.Text = "回 价"; } BiddingEmitModify1.InitControl(); BiddingReturnModify1.InitControl(); }
/// **************************************************************************** /// <summary> /// 初始化 /// </summary> /// **************************************************************************** private void InitPage() { if (Request["State"] + "" == "edit") { string ApplicationCode = Request["ApplicationCode"] + ""; string BiddingCode = Request["BiddingCode"] + ""; this.BiddingEmitModify1.ApplicationCode = ApplicationCode; this.BiddingEmitModify1.BiddingCode = BiddingCode; this.BiddingReturnModify1.BiddingEmitCode = ApplicationCode; this.BiddingReturnModify1.BiddingCode = BiddingCode; this.BiddingReturnModify1.IsWSZTB = this.user.HasRight("210301"); BiddingEmitModify1.State = WorkFlowControl.ModuleState.Operable; BiddingReturnModify1.State = WorkFlowControl.ModuleState.Eyeable; this.btnSave.Visible = true; this.btnReSNandPWD.Visible = false; if (ApplicationCode != "") { this.btnDel.Visible = true; } else { this.btnDel.Visible = false; } BiddingEmitModify1.InitControl(); BiddingReturnModify1.InitControl(); BiddingDtlModify1.ApplicationCode = BiddingCode; BiddingDtlModify1.State = WorkFlowControl.ModuleState.Eyeable; if (this.user.HasRight("2106")) { BiddingDtlModify1.PriceState = WorkFlowControl.ModuleState.Operable; } BiddingDtlModify1.InitControl(); SetBiddingEmitManage(); } else if (Request["State"] + "" == "view") { /*BiddingEmitModify1.State = WorkFlowControl.ModuleState.Eyeable; * BiddingReturnModify1.State = WorkFlowControl.ModuleState.Other; * BiddingReturnModify1.BiddingEmitCode=ApplicationCode;*/ string BiddingEmitCode = Request["BiddingEmitCode"] + ""; this.BiddingEmitModify1.ApplicationCode = BiddingEmitCode; BiddingEmitModify1.State = WorkFlowControl.ModuleState.Eyeable; BiddingReturnModify1.State = WorkFlowControl.ModuleState.Other; this.BiddingReturnModify1.IsWSZTB = this.user.HasRight("210301"); BiddingReturnModify1.IsReturnView = false; BiddingReturnModify1.BiddingEmitCode = BiddingEmitCode; this.btnSave.Visible = false; this.btnReSNandPWD.Visible = true; this.btnDel.Visible = false; BiddingEmitModify1.InitControl(); BiddingReturnModify1.InitControl(); BiddingDtlModify1.ApplicationCode = BiddingEmitModify1.BiddingCode; BiddingDtlModify1.State = WorkFlowControl.ModuleState.Eyeable; BiddingDtlModify1.BiddingEmitCode = BiddingEmitCode; BiddingDtlModify1.InitControl(); //判断是否能修改 BLL.BiddingEmit bidEmit = new BLL.BiddingEmit(); bidEmit.BiddingEmitCode = BiddingEmitCode; if (bidEmit.CreatUser == this.user.UserCode) { this.btnChange.Visible = true; } } if (Request["NowState"] + "" == "5") { Lb_Title.Text = "压 价"; } this.btnSave.Attributes["OnClick"] = "javascript:if(BiddingEmitCheckSubmit()) "; BiddingReturnModify1.Show_ttachMentAdd2(BiddingEmitModify1.ApplicationCode); btnOpen.Visible = BiddingBFL.CanOpenNow(this.BiddingReturnModify1.BiddingEmitCode, this.user.UserCode); }