/// ****************************************************************************
        /// <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>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 /// ****************************************************************************
 protected void Page_Load(object sender, System.EventArgs e)
 {
     if (!IsPostBack)
     {
         InitPage();
     }
     BiddingReturnModify1.Show_ttachMentAdd(BiddingEmitModify1.ApplicationCode);
 }
        protected void btnSave_ServerClick(object sender, System.EventArgs e)
        {
            if (BiddingReturnModify1.BiddingReturnCheck())
            {
                this.RegisterStartupScript("CheckAlert", "<script>alert('回标单位金额和日期必须同时填写!');</script>");
                return;
            }
            else
            {
                using (StandardEntityDAO dao = new StandardEntityDAO("BiddingReturn"))
                {
                    dao.BeginTrans();
                    try
                    {
                        /***********************************************************/
                        this.BiddingReturnModify1.dao = dao;
                        this.BiddingReturnModify1.SubmitData();

                        /*******************************************************/
                        dao.CommitTrans();
                        //手工回标,直接置为已开标
                        BiddingBFL.SetEmit_State(Request["BiddingEmitCode"] + "", 1);
                        Response.Write("<script>window.opener.location.reload(true)</script>");
                        // Response.Write("<script>window.close()</script>");

                        /*Response.Write(Rms.Web.JavaScript.ScriptStart);
                         * Response.Write(Rms.Web.JavaScript.OpenerReload(false));
                         * Response.Write(Rms.Web.JavaScript.WinClose(false));
                         * Response.Write(Rms.Web.JavaScript.ScriptEnd);*/
                    }
                    catch (Exception ex)
                    {
                        dao.RollBackTrans();
                        Response.Write(Rms.Web.JavaScript.Alert(true, "请填写回标单位日期!"));
                        //throw ex;
                    }
                    finally
                    {
                    }
                }
            }
            /*******************************************************************/
        }
Exemple #4
0
        /// ****************************************************************************
        /// <summary>
        /// 保存按钮事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        /// ****************************************************************************
        protected void btnSave_ServerClick(object sender, System.EventArgs e)
        {
            /****************************************************************************/
            using (StandardEntityDAO dao = new StandardEntityDAO("Leave"))
            {
                //dao.BeginTrans();
                try
                {
                    this.BiddingEmitModify1.dao = dao;
                    this.BiddingEmitModify1.SubmitData();

                    this.BiddingReturnModify1.dao             = dao;
                    this.BiddingReturnModify1.BiddingEmitCode = this.BiddingEmitModify1.ApplicationCode;
                    this.BiddingReturnModify1.SubmitData();


                    /*******************************************************/
                    //dao.CommitTrans();
                    //增加备注
                    BiddingReturnModify1.UpdateRemark();
                }
                catch (Exception ex)
                {
                    //dao.RollBackTrans();

                    throw ex;
                }
                finally
                {
                    //dao.Dispose();
                }
                InitPage();
            }
            /*******************************************************************/

            //Response.Write(Rms.Web.JavaScript.ScriptStart);
            //Response.Write(Rms.Web.JavaScript.OpenerReload(false));
            Response.Write("<script>window.opener.location.reload(true)</script>");
            Response.Write("<script>window.close()</script>");
            //Response.Write(Rms.Web.JavaScript.WinClose(false));
            //Response.Write(Rms.Web.JavaScript.ScriptEnd);
        }
Exemple #5
0
        /// ****************************************************************************
        /// <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);
        }