Exemple #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();");
        }
    }
Exemple #2
0
 protected void btnSave_Click(object sender, System.EventArgs e)
 {
     try
     {
         string value = this.hfldPrjId.Value;
         if (!string.IsNullOrEmpty(value))
         {
             PTPrjInfoZTBService       pTPrjInfoZTBService       = new PTPrjInfoZTBService();
             PTPrjInfoZTBDetailService pTPrjInfoZTBDetailService = new PTPrjInfoZTBDetailService();
             PTPrjInfoZTB       byId  = pTPrjInfoZTBService.GetById(new System.Guid(value));
             PTPrjInfoZTBDetail byId2 = pTPrjInfoZTBDetailService.GetById(value);
             if (!string.IsNullOrEmpty(this.txtApplyDate.Text.Trim()))
             {
                 byId2.ProjApplyDate = new System.DateTime?(System.Convert.ToDateTime(this.txtApplyDate.Text.Trim()));
             }
             if (!string.IsNullOrEmpty(this.txtProjStartDate.Text.Trim()))
             {
                 byId2.ProjStartDate = new System.DateTime?(System.Convert.ToDateTime(this.txtProjStartDate.Text.Trim()));
             }
             byId2.ProjStartRemark   = this.txtStartRemark.Text.Trim();
             byId.PrjState           = new int?(System.Convert.ToInt32(ProjectParameter.Initiate));
             byId.IsGiveUp           = false;
             byId.OldState           = null;
             byId.PrjStateChangeTime = new System.DateTime?(System.DateTime.Now);
             pTPrjInfoZTBService.Update(byId);
             pTPrjInfoZTBDetailService.Update(byId2);
             base.RegisterScript("top.ui.show('报名通过资料保存成功!');top.ui.winSuccess({parentName:'_initiatePass'});");
         }
     }
     catch
     {
         base.RegisterScript("top.ui.alert('报名通过资料保存失败!');top.ui.winSuccess({parentName:'_initiatePass'});");
     }
 }