Пример #1
0
    protected void btnSave_Click(object sender, System.EventArgs e)
    {
        string value = this.hfldPrjId.Value;

        if (!string.IsNullOrEmpty(value))
        {
            System.Guid               id = new System.Guid(value);
            PTPrjInfoZTBService       pTPrjInfoZTBService       = new PTPrjInfoZTBService();
            PTPrjInfoZTBDetailService pTPrjInfoZTBDetailService = new PTPrjInfoZTBDetailService();
            PTPrjInfoZTB              byId  = pTPrjInfoZTBService.GetById(id);
            PTPrjInfoZTBDetail        byId2 = pTPrjInfoZTBDetailService.GetById(value);
            TenderInfo.GetById(value);
            System.DateTime?successBidDate = null;
            if (!string.IsNullOrEmpty(this.txtSuccessBidDate.Text))
            {
                successBidDate = new System.DateTime?(System.Convert.ToDateTime(this.txtSuccessBidDate.Text.Trim()));
            }
            byId2.SuccessBidDate = successBidDate;
            decimal?num = null;
            if (!string.IsNullOrEmpty(this.txtSuccessBidPrice.Text))
            {
                num = new decimal?(System.Convert.ToDecimal(this.txtSuccessBidPrice.Text.Trim()));
            }
            byId2.SuccessBidPrice   = num;
            byId2.SuccessBidRemark  = this.txtSuccessBidRemark.Text.Trim();
            byId.PrjCost            = new double?(System.Convert.ToDouble(num));
            byId.PrjStateChangeTime = new System.DateTime?(System.DateTime.Now);
            byId.PrjState           = new int?(int.Parse(ProjectParameter.WinBid));
            byId.ParentTypeCode     = pTPrjInfoZTBService.GetParentTypeCode(this.dropParentProject.SelectedValue);
            pTPrjInfoZTBService.Update(byId);
            pTPrjInfoZTBDetailService.Update(byId2);
            base.RegisterScript("top.ui.alert('中标资料保存成功!');top.ui.closeWin();top.ui.reloadTab();");
        }
    }