//儲存資料 protected void SaveAction(object sender, EventArgs e) { string database = Session["DatabaseName"].ToString(); //檢查標題文字 ErrorString += (DropDownList2.SelectedItem) == null ? "工程所在國家請選擇!!\\n" : ""; ErrorString += (DropDownList4.SelectedItem) == null ? "工程所在縣市請選擇!!\\n" : ""; ErrorString += (DropDownList5.SelectedItem) == null ? "電子領標請選擇!!\\n" : ""; ErrorString += (DropDownList6.SelectedItem) == null ? "電子投標請選擇!!\\n" : ""; ErrorString += (EndDate.Text) == string.Empty ? "截標時間請填入!!\\n" : ""; ErrorString += (OwnerName.Text) == string.Empty ? "業主名稱請填入!!\\n" : ""; ErrorString += (OwnerContactPerson.Text) == string.Empty ? "業主聯絡人請填入!!\\n" : ""; ErrorString += (OwnerAddress.Text) == string.Empty ? "業主地址請填入!!\\n" : ""; ErrorString += (OwnerContactTel.Text) == string.Empty ? "業主聯絡電話請填入!!\\n" : ""; ErrorString += (GetBidAddress.Text) == string.Empty ? "領標地址請填入!!\\n" : ""; ErrorString += (IlluBond.Text) == string.Empty ? "押圖費請填入!!\\n" : ""; ErrorString += (IlluFee.Text) == string.Empty ? "圖說費請填入!!\\n" : ""; ErrorString += (ReturnIlluDeadline.Text) == string.Empty ? "退圖期限請填入!!\\n" : ""; ErrorString += (PerformanceBondType.SelectedItem) == null ? "履約保證金請選擇!!\\n" : ""; ErrorString += (PerformanceBond.Text) == string.Empty ? "履約保證金請填入!!\\n" : ""; ErrorString += (BidBondType.SelectedItem) == null ? "押標金請選擇!!\\n" : ""; ErrorString += (BidBond.Text) == string.Empty ? "押標金請填入!!\\n" : ""; ErrorString += (FirmQualif.Text) == string.Empty ? "廠商投標規定請填入!!\\n" : ""; ErrorString += (OpenBidAddress.Text) == string.Empty ? "開標地點請填入!!\\n" : ""; ErrorString += (OpenBidTime.Text) == string.Empty ? "開標時間請填入!!\\n" : ""; ErrorString += (AwardingType.SelectedItem.Value) == "0" ? "決標方式請選擇!!\\n" : ""; ErrorString += (JointBidNY.SelectedItem.Value) == "0" ? "共同投標請選擇!!\\n" : ""; ErrorString += (GetBidNY.SelectedItem.Value) == "0" ? "已領標請選擇!!\\n" : ""; //確認是否全選 if (ErrorString == "") { //確認選項是否存在或過期 if (Session["bid"] == null) { ScriptManager.RegisterStartupScript((System.Web.UI.Page)HttpContext.Current.Handler, this.GetType(), "ShowMessage", "alert(' 請重新選擇');", true); } else { //確認資料庫是否有資料 if (datacheck(Session["Bid"].ToString()) == false) { WebModel.SaveAction_BID(database, _TableName, GetDataBox()); ScriptManager.RegisterStartupScript((System.Web.UI.Page)HttpContext.Current.Handler, this.GetType(), "ShowMessage", "alert('存檔完成');", true); } else { WebModel.EditAction_bid(database, _TableName, Session["bid"].ToString(), GetDataBox()); ScriptManager.RegisterStartupScript((System.Web.UI.Page)HttpContext.Current.Handler, this.GetType(), "ShowMessage", "alert('修改完成');", true); } } } else { ScriptManager.RegisterStartupScript((System.Web.UI.Page)HttpContext.Current.Handler, this.GetType(), "ShowMessage", "alert('" + ErrorString + "');", true); } }
//儲存資料 protected void SaveAction(object sender, EventArgs e) { string database = Session["DatabaseName"].ToString(); //檢查標題文字 ErrorString += (DropDownList4.SelectedItem.Value) == "0" ? "決標結果請選擇!!\\n" : ""; ErrorString += (TxGetFirm.Text) == "" ? "得標廠商請填入!!\\n" : ""; ErrorString += (TxAwardPrice.Text) == "" ? "得標金額請填入!!\\n" : ""; ErrorString += (TxUpsetPrice.Text) == "" ? "底價金額請填入!!\\n" : ""; //確認是否全選 if (ErrorString == "") { //確認選項是否存在或過期 if (Session["bid"] == null) { ScriptManager.RegisterStartupScript((System.Web.UI.Page)HttpContext.Current.Handler, this.GetType(), "ShowMessage", "alert(' 請重新選擇');", true); } else { //確認資料庫是否有資料 if (datacheck(Session["Bid"].ToString()) == false) { WebModel.SaveAction_BID(database, _TableName, GetDataBox()); ScriptManager.RegisterStartupScript((System.Web.UI.Page)HttpContext.Current.Handler, this.GetType(), "ShowMessage", "alert('存檔完成');", true); } else { bool result = WebModel.EditAction_bid(database, _TableName, Session["bid"].ToString(), GetDataBox()); if (result) { ScriptManager.RegisterStartupScript((System.Web.UI.Page)HttpContext.Current.Handler, this.GetType(), "ShowMessage", "alert('修改完成');", true); } else { ScriptManager.RegisterStartupScript((System.Web.UI.Page)HttpContext.Current.Handler, this.GetType(), "ShowMessage", "alert('修改失敗');", true); } } } } else { ScriptManager.RegisterStartupScript((System.Web.UI.Page)HttpContext.Current.Handler, this.GetType(), "ShowMessage", "alert('" + ErrorString + "');", true); } }
//儲存資料 protected void SaveAction(object sender, EventArgs e) { string database = Session["DatabaseName"].ToString(); //檢查標題文字 ErrorString += (RBEngType.SelectedIndex) == -1 ? "工程區分請選擇!!\\n" : ""; ErrorString += (DLEngClass.SelectedIndex) == 0 ? "工程分類請選擇!!\\n" : ""; ErrorString += (DownFloorNum.Text) == string.Empty ? "地下樓層數請填入!!\\n" : ""; ErrorString += (UpFloorNum.Text) == string.Empty ? "地上樓層數請填入!!\\n" : ""; ErrorString += (Height.Text) == string.Empty ? "地下樓層面積請填入!!\\n" : ""; ErrorString += (ExcDepth.Text) == string.Empty ? "地上樓層面積請填入!!\\n" : ""; ErrorString += (DLFoundationType.SelectedIndex) == 0 ? "基礎型式請選擇!!\\n" : ""; ErrorString += (DLRetaining.SelectedIndex) == 0 ? "擋土措施請選擇!!\\n" : ""; ErrorString += (DownFloorArea.Text) == string.Empty ? "建物高度請填入!!\\n" : ""; ErrorString += (UpFloorArea.Text) == string.Empty ? "開挖深度請填入!!\\n" : ""; ErrorString += (Note.Text) == string.Empty ? "施工概要備註請填入!!\\n" : ""; ErrorString += (Other.Text) == string.Empty ? "其他工程概要請填入!!\\n" : ""; //確認是否全選 if (ErrorString == "") { //確認選項是否存在或過期 if (Session["bid"] == null) { ScriptManager.RegisterStartupScript((System.Web.UI.Page)HttpContext.Current.Handler, this.GetType(), "ShowMessage", "alert(' 請重新選擇');", true); } else { //確認資料庫是否有資料 if (datacheck(Session["Bid"].ToString()) == false) { WebModel.SaveAction_BID(database, _TableName, GetDataBox()); ScriptManager.RegisterStartupScript((System.Web.UI.Page)HttpContext.Current.Handler, this.GetType(), "ShowMessage", "alert('存檔完成');", true); } else { WebModel.EditAction_bid(database, _TableName, Session["bid"].ToString(), GetDataBox()); ScriptManager.RegisterStartupScript((System.Web.UI.Page)HttpContext.Current.Handler, this.GetType(), "ShowMessage", "alert('修改完成');", true); } } } else { ScriptManager.RegisterStartupScript((System.Web.UI.Page)HttpContext.Current.Handler, this.GetType(), "ShowMessage", "alert('" + ErrorString + "');", true); } }
//儲存資料 protected void SaveAction(object sender, EventArgs e) { string database = Session["DatabaseName"].ToString(); //檢查標題文字 ErrorString += (RadioButtonList1.SelectedIndex) == -1 ? "開工期限合理性請選擇!!\\n" : ""; ErrorString += (RadioButtonList2.SelectedIndex) == -1 ? "工期合理性請選擇!!\\n" : ""; ErrorString += (RadioButtonList3.SelectedIndex) == -1 ? "工期階段管制合理性請選擇!!\\n" : ""; ErrorString += (RadioButtonList4.SelectedIndex) == -1 ? "保固合理性請選擇!!\\n" : ""; ErrorString += (RadioButtonList5.SelectedIndex) == -1 ? "承攬方式合理性請選擇!!\\n" : ""; ErrorString += (RadioButtonList6.SelectedIndex) == -1 ? "付款辦法合理性請選擇!!\\n" : ""; ErrorString += (RadioButtonList7.SelectedIndex) == -1 ? "物價補貼請選擇!!\\n" : ""; ErrorString += (RadioButtonList8.SelectedIndex) == -1 ? "對我不利條文請選擇!!\\n" : ""; ErrorString += (RadioButtonList9.SelectedIndex) == -1 ? "合約條款適法性請選擇!!\\n" : ""; //確認是否全選 if (ErrorString == "") { //確認選項是否存在或過期 if (Session["bid"] == null) { ScriptManager.RegisterStartupScript((System.Web.UI.Page)HttpContext.Current.Handler, this.GetType(), "ShowMessage", "alert(' 請重新選擇');", true); } else { //確認資料庫是否有資料 if (datacheck(Session["Bid"].ToString()) == false) { WebModel.SaveAction_BID(database, _TableName, GetDataBox()); ScriptManager.RegisterStartupScript((System.Web.UI.Page)HttpContext.Current.Handler, this.GetType(), "ShowMessage", "alert('存檔完成');", true); } else { WebModel.EditAction_bid(database, _TableName, Session["bid"].ToString(), GetDataBox()); ScriptManager.RegisterStartupScript((System.Web.UI.Page)HttpContext.Current.Handler, this.GetType(), "ShowMessage", "alert('修改完成');", true); } } } else { ScriptManager.RegisterStartupScript((System.Web.UI.Page)HttpContext.Current.Handler, this.GetType(), "ShowMessage", "alert('" + ErrorString + "');", true); } }
//儲存資料 protected void SaveAction(object sender, EventArgs e) { string database = Session["DatabaseName"].ToString(); //檢查標題文字 ErrorString += (DLWorkManDep.SelectedIndex) == 0 ? "作業部門請選擇!!\\n" : ""; ErrorString += (DLWorkManName.SelectedIndex) == 0 ? "作業負責人請選擇!!\\n" : ""; ErrorString += (GetBidDate.Text) == string.Empty ? "完成領標日期請填入!!\\n" : ""; ErrorString += (BookEstimateEndDate.Text) == string.Empty ? "預定估算完成日期請填入!!\\n" : ""; ErrorString += (PriBidMeetTime.Text) == string.Empty ? "標前會議時間請填入!!\\n" : ""; ErrorString += (SendBidDate.Text) == string.Empty ? "寄送標單日期請填入!!\\n" : ""; ErrorString += (ReturnIlluDate.Text) == string.Empty ? "退圖日期請填入!!\\n" : ""; ErrorString += (EstimateCosts.Text) == string.Empty ? "估算成本請填入!!\\n" : ""; ErrorString += (ProposalPrice.Text) == string.Empty ? "建議標價請填入!!\\n" : ""; ErrorString += (ProposalProfit.Text) == string.Empty ? "建議利潤請填入!!\\n" : ""; ErrorString += (ApprovedPrice.Text) == string.Empty ? "核定標價請填入!!\\n" : ""; ErrorString += (ApprovedProfit.Text) == string.Empty ? "核定利潤請填入!!\\n" : ""; //確認是否全選 if (ErrorString == "") { //確認選項是否存在或過期 if (Session["bid"] == null) { ScriptManager.RegisterStartupScript((System.Web.UI.Page)HttpContext.Current.Handler, this.GetType(), "ShowMessage", "alert(' 請重新選擇');", true); } else { //確認資料庫是否有資料 if (datacheck(Session["Bid"].ToString()) == false) { WebModel.SaveAction_BID(database, _TableName, GetDataBox()); ScriptManager.RegisterStartupScript((System.Web.UI.Page)HttpContext.Current.Handler, this.GetType(), "ShowMessage", "alert('存檔完成');", true); } else { WebModel.EditAction_bid(database, _TableName, Session["bid"].ToString(), GetDataBox()); ScriptManager.RegisterStartupScript((System.Web.UI.Page)HttpContext.Current.Handler, this.GetType(), "ShowMessage", "alert('修改完成');", true); } } } else { ScriptManager.RegisterStartupScript((System.Web.UI.Page)HttpContext.Current.Handler, this.GetType(), "ShowMessage", "alert('" + ErrorString + "');", true); } }
//儲存資料 protected void SaveAction(object sender, EventArgs e) { string database = Session["DatabaseName"].ToString(); //檢查標題文字 //ErrorString += (PriceSubsidyNY.SelectedIndex) == -1 ? "物價補貼請選擇!!\\n" : ""; //ErrorString += (PrepayPercentage.Text) == string.Empty ? "預付款百分比請填入!!\\n" : ""; //ErrorString += (EstAcceptNum.Text) == string.Empty ? "估驗頻率請填入!!\\n" : ""; //ErrorString += (EstAcceptUnit.Text) == string.Empty ? "估驗頻率/(次)請填入!!\\n" : ""; //ErrorString += (EstAcceptDate1.Text) == string.Empty ? "估驗日期1請填入!!\\n" : ""; //ErrorString += (EstAcceptDate2.Text) == string.Empty ? "估驗日期2請填入!!\\n" : ""; //ErrorString += (RetentionPercentage.Text) == string.Empty ? "保留款百分比請填入!!\\n" : ""; //ErrorString += (OtherPayment.Text) == string.Empty ? "其他付款規定請填入!!\\n" : ""; //確認是否全選 if (ErrorString == "") { //確認選項是否存在或過期 if (Session["bid"] == null) { ScriptManager.RegisterStartupScript((System.Web.UI.Page)HttpContext.Current.Handler, this.GetType(), "ShowMessage", "alert(' 請重新選擇');", true); } else { //確認資料庫是否有資料 if (datacheck(Session["Bid"].ToString()) == false) { WebModel.SaveAction_BID(database, _TableName, GetDataBox()); ScriptManager.RegisterStartupScript((System.Web.UI.Page)HttpContext.Current.Handler, this.GetType(), "ShowMessage", "alert('存檔完成');", true); } else { WebModel.EditAction_bid(database, _TableName, Session["bid"].ToString(), GetDataBox()); ScriptManager.RegisterStartupScript((System.Web.UI.Page)HttpContext.Current.Handler, this.GetType(), "ShowMessage", "alert('修改完成');", true); } } } else { ScriptManager.RegisterStartupScript((System.Web.UI.Page)HttpContext.Current.Handler, this.GetType(), "ShowMessage", "alert('" + ErrorString + "');", true); } }
//儲存資料 protected void SaveAction(object sender, EventArgs e) { string database = Session["DatabaseName"].ToString(); //檢查標題文字 ErrorString += (ContractWay.SelectedIndex) == -1 ? "承攬方式請選擇!!\\n" : ""; ErrorString += (OwnerName.Text) == string.Empty ? "業主名稱請填入!!\\n" : ""; ErrorString += (ArchitectName.Text) == string.Empty ? "建築師/設計單位名稱請填入!!\\n" : ""; ErrorString += (ConsultantName.Text) == string.Empty ? "監造單位名稱請填入!!\\n" : ""; ErrorString += (PCMname.Text) == string.Empty ? "PCM名稱請填入!!\\n" : ""; ErrorString += (DurationType.SelectedIndex) == 0 ? "工期計算方式請選擇!!\\n" : ""; ErrorString += (Duration.Text) == string.Empty ? "工期請填入!!\\n" : ""; //確認是否全選 if (ErrorString == "") { //確認選項是否存在或過期 if (Session["bid"] == null) { ScriptManager.RegisterStartupScript((System.Web.UI.Page)HttpContext.Current.Handler, this.GetType(), "ShowMessage", "alert(' 請重新選擇');", true); } else { //確認資料庫是否有資料 if (datacheck(Session["Bid"].ToString()) == false) { WebModel.SaveAction_BID(database, _TableName, GetDataBox()); ScriptManager.RegisterStartupScript((System.Web.UI.Page)HttpContext.Current.Handler, this.GetType(), "ShowMessage", "alert('存檔完成');", true); } else { WebModel.EditAction_bid(database, _TableName, Session["bid"].ToString(), GetDataBox()); ScriptManager.RegisterStartupScript((System.Web.UI.Page)HttpContext.Current.Handler, this.GetType(), "ShowMessage", "alert('修改完成');", true); } } } else { ScriptManager.RegisterStartupScript((System.Web.UI.Page)HttpContext.Current.Handler, this.GetType(), "ShowMessage", "alert('" + ErrorString + "');", true); } }
//儲存資料 protected void SaveAction(object sender, EventArgs e) { string database = Session["DatabaseName"].ToString(); //檢查標題文字 ErrorString += (WarrantyPercentage.Text) == string.Empty ? "保固百分比請填入!!\\n" : ""; //ErrorString += (OtherWarranty.Text) == string.Empty ? "其他保固規定請填入!!\\n" : ""; //確認是否全選 if (ErrorString == "") { //確認選項是否存在或過期 if (Session["bid"] == null) { ScriptManager.RegisterStartupScript((System.Web.UI.Page)HttpContext.Current.Handler, this.GetType(), "ShowMessage", "alert(' 請重新選擇');", true); Response.Redirect("BidDurationE.aspx"); } else { //確認資料庫是否有資料 if (datacheck(Session["Bid"].ToString()) == false) { WebModel.SaveAction_BID(database, _TableName, GetDataBox()); ScriptManager.RegisterStartupScript((System.Web.UI.Page)HttpContext.Current.Handler, this.GetType(), "ShowMessage", "alert('存檔完成');", true); } else { WebModel.EditAction_bid(database, _TableName, Session["bid"].ToString(), GetDataBox()); ScriptManager.RegisterStartupScript((System.Web.UI.Page)HttpContext.Current.Handler, this.GetType(), "ShowMessage", "alert('修改完成');", true); } } } else { ScriptManager.RegisterStartupScript((System.Web.UI.Page)HttpContext.Current.Handler, this.GetType(), "ShowMessage", "alert('" + ErrorString + "');", true); } }
//儲存資料 protected void SaveAction(object sender, EventArgs e) { string database = Session["DatabaseName"].ToString(); //檢查標題文字 //ErrorString += (ContractCaution1.Text) == string.Empty ? "契約終止請填入!!\\n" : ""; //ErrorString += (ContractCaution2.Text) == string.Empty ? "變更設計請填入!!\\n" : ""; //ErrorString += (ContractCaution3.Text) == string.Empty ? "爭議處理請填入!!\\n" : ""; //ErrorString += (ContractCaution4.Text) == string.Empty ? "其他請填入!!\\n" : ""; //確認是否全選 if (ErrorString == "") { //確認選項是否存在或過期 if (Session["bid"] == null) { ScriptManager.RegisterStartupScript((System.Web.UI.Page)HttpContext.Current.Handler, this.GetType(), "ShowMessage", "alert(' 請重新選擇');", true); } else { //確認資料庫是否有資料 if (datacheck(Session["Bid"].ToString()) == false) { WebModel.SaveAction_BID(database, _TableName, GetDataBox()); ScriptManager.RegisterStartupScript((System.Web.UI.Page)HttpContext.Current.Handler, this.GetType(), "ShowMessage", "alert('存檔完成');", true); } else { WebModel.EditAction_bid(database, _TableName, Session["bid"].ToString(), GetDataBox()); ScriptManager.RegisterStartupScript((System.Web.UI.Page)HttpContext.Current.Handler, this.GetType(), "ShowMessage", "alert('修改完成');", true); } } } else { ScriptManager.RegisterStartupScript((System.Web.UI.Page)HttpContext.Current.Handler, this.GetType(), "ShowMessage", "alert('" + ErrorString + "');", true); } }
//儲存資料 protected void SaveAction(object sender, EventArgs e) { string database = Session["DatabaseName"].ToString(); //檢查標題文字 //ErrorString += (StartDeadlinetype.SelectedIndex) == -1 ? "開工期限方式請選擇!!\\n" : ""; //ErrorString += (StartDeadline.Text) == string.Empty ? "開工期限天數請填入!!\\n" : ""; //ErrorString += (CompletionEscDeadline.Text) == string.Empty ? "完工提報期限請填入!!\\n" : ""; //ErrorString += (DelayEscDeadline.Text) == string.Empty ? "工期延展請填入!!\\n" : ""; //確認是否全選 if (ErrorString == "") { //確認選項是否存在或過期 if (Session["bid"] == null) { ScriptManager.RegisterStartupScript((System.Web.UI.Page)HttpContext.Current.Handler, this.GetType(), "ShowMessage", "alert(' 請重新選擇');", true); } else { //確認資料庫是否有資料 if (datacheck(Session["Bid"].ToString()) == false) { WebModel.SaveAction_BID(database, _TableName, GetDataBox()); ScriptManager.RegisterStartupScript((System.Web.UI.Page)HttpContext.Current.Handler, this.GetType(), "ShowMessage", "alert('存檔完成');", true); } else { WebModel.EditAction_bid(database, _TableName, Session["bid"].ToString(), GetDataBox()); ScriptManager.RegisterStartupScript((System.Web.UI.Page)HttpContext.Current.Handler, this.GetType(), "ShowMessage", "alert('修改完成');", true); } } } else { ScriptManager.RegisterStartupScript((System.Web.UI.Page)HttpContext.Current.Handler, this.GetType(), "ShowMessage", "alert('" + ErrorString + "');", true); } }
//儲存資料 protected void SaveAction(object sender, EventArgs e) { string database = Session["DatabaseName"].ToString(); //檢查標題文字 ErrorString += (RadioButtonList1.SelectedIndex) == -1 ? "評估建議請選擇!!\\n" : ""; ErrorString += (TxPreResultNote.Text) == "" ? "建議說明請填入!!\\n" : ""; //確認是否全選 if (ErrorString == "") { //確認選項是否存在或過期 if (Session["bid"] == null) { ScriptManager.RegisterStartupScript((System.Web.UI.Page)HttpContext.Current.Handler, this.GetType(), "ShowMessage", "alert(' 請重新選擇');", true); } else { //確認資料庫是否有資料 if (datacheck(Session["Bid"].ToString()) == false) { WebModel.SaveAction_BID(database, _TableName, GetDataBox()); ScriptManager.RegisterStartupScript((System.Web.UI.Page)HttpContext.Current.Handler, this.GetType(), "ShowMessage", "alert('存檔完成');", true); } else { WebModel.EditAction_bid(database, _TableName, Session["bid"].ToString(), GetDataBox()); ScriptManager.RegisterStartupScript((System.Web.UI.Page)HttpContext.Current.Handler, this.GetType(), "ShowMessage", "alert('修改完成');", true); } } } else { ScriptManager.RegisterStartupScript((System.Web.UI.Page)HttpContext.Current.Handler, this.GetType(), "ShowMessage", "alert('" + ErrorString + "');", true); } }
protected void ImgSave_Click(object sender, ImageClickEventArgs e) { if (Session["bid"] == null || Session["bid"].ToString() == "") { Response.Write("<script>alert('尚未選擇標案');</script>"); } else { string database = Session["DatabaseName"].ToString(); //檢查標題文字 ErrorString += (DropDownList2.SelectedItem) == null ? "工程所在國家請選擇!!\\n" : ""; ErrorString += (DropDownList4.SelectedItem) == null ? "工程所在縣市請選擇!!\\n" : ""; //ErrorString += (DDL_EGetBidNY.SelectedItem) == null ? "電子領標請選擇!!\\n" : ""; //ErrorString += (DDL_EBiddingNY.SelectedItem) == null ? "電子投標請選擇!!\\n" : ""; ErrorString += (TxDeadTime.Text) == string.Empty ? "截標時間請填入!!\\n" : ""; //ErrorString += (TxOwner.Text) == string.Empty ? "業主名稱請填入!!\\n" : ""; //ErrorString += (TxContact.Text) == string.Empty ? "業主聯絡人請填入!!\\n" : ""; //ErrorString += (TxAddress.Text) == string.Empty ? "業主地址請填入!!\\n" : ""; //ErrorString += (TxTel.Text) == string.Empty ? "業主聯絡電話請填入!!\\n" : ""; //ErrorString += (TxBidAddrss.Text) == string.Empty ? "領標地址請填入!!\\n" : ""; //ErrorString += (TxPicFee.Text) == string.Empty ? "押圖費請填入!!\\n" : ""; //ErrorString += (TxIllFee.Text) == string.Empty ? "圖說費請填入!!\\n" : ""; //ErrorString += (TxReturnIlluDeadline.Text) == string.Empty ? "退圖期限請填入!!\\n" : ""; //ErrorString += (RadioButtonList1.SelectedItem) == null ? "履約保證金請選擇!!\\n" : ""; //ErrorString += (TxGnFee.Text) == string.Empty ? "履約保證金請填入!!\\n" : ""; //ErrorString += (RadioButtonList2.SelectedItem) == null ? "押標金請選擇!!\\n" : ""; //ErrorString += (TxBidBond.Text) == string.Empty ? "押標金請填入!!\\n" : ""; //ErrorString += (TxFirmQualif.Text) == string.Empty ? "廠商投標規定請填入!!\\n" : ""; //ErrorString += (TxOpenBidAddress.Text) == string.Empty ? "開標地點請填入!!\\n" : ""; ErrorString += (TxOpenBidAddTime.Text) == string.Empty ? "開標時間請填入!!\\n" : ""; //ErrorString += (AwardingType.SelectedItem.Value) == "0" ? "決標方式請選擇!!\\n" : ""; //ErrorString += (ddl_JointBidNY.SelectedItem.Value) == "0" ? "共同投標請選擇!!\\n" : ""; ErrorString += (ddl_GetBidNY.SelectedItem.Value) == "0" ? "已領標請選擇!!\\n" : ""; //確認是否全選 if (ErrorString == "") { //確認選項是否存在或過期 if (Session["bid"] == null) { ScriptManager.RegisterStartupScript((System.Web.UI.Page)HttpContext.Current.Handler, this.GetType(), "ShowMessage", "alert(' 請重新選擇');", true); } else { //確認資料庫是否有資料 if (datacheck(DDL_Bid.SelectedValue) == false) { WebModel.SaveAction_BID(database, _TableName, GetDataBox()); ScriptManager.RegisterStartupScript((System.Web.UI.Page)HttpContext.Current.Handler, this.GetType(), "ShowMessage", "alert('存檔完成');", true); } else { WebModel.EditAction_bid(database, _TableName, DDL_Bid.SelectedValue, GetDataBox()); ScriptManager.RegisterStartupScript((System.Web.UI.Page)HttpContext.Current.Handler, this.GetType(), "ShowMessage", "alert('修改完成');", true); } if (datacheck1(DDL_Bid.SelectedValue) == false) { WebModel.SaveAction_BID(database, _TableName1, GetDataBox1()); ScriptManager.RegisterStartupScript((System.Web.UI.Page)HttpContext.Current.Handler, this.GetType(), "ShowMessage", "alert('存檔完成');", true); } else { WebModel.EditAction_bid(database, _TableName1, DDL_Bid.SelectedValue, GetDataBox1()); ScriptManager.RegisterStartupScript((System.Web.UI.Page)HttpContext.Current.Handler, this.GetType(), "ShowMessage", "alert('修改完成');", true); } if (datacheck2(DDL_Bid.SelectedValue) == false) { WebModel.SaveAction_BID(database, _TableName2, GetDataBox2()); ScriptManager.RegisterStartupScript((System.Web.UI.Page)HttpContext.Current.Handler, this.GetType(), "ShowMessage", "alert('存檔完成');", true); } else { WebModel.EditAction_bid(database, _TableName2, DDL_Bid.SelectedValue, GetDataBox2()); ScriptManager.RegisterStartupScript((System.Web.UI.Page)HttpContext.Current.Handler, this.GetType(), "ShowMessage", "alert('修改完成');", true); } if (datacheck3(DDL_Bid.SelectedValue) == false) { WebModel.SaveAction_BID(database, _TableName3, GetDataBox3()); ScriptManager.RegisterStartupScript((System.Web.UI.Page)HttpContext.Current.Handler, this.GetType(), "ShowMessage", "alert('存檔完成');", true); } else { WebModel.EditAction_bid(database, _TableName3, DDL_Bid.SelectedValue, GetDataBox3()); ScriptManager.RegisterStartupScript((System.Web.UI.Page)HttpContext.Current.Handler, this.GetType(), "ShowMessage", "alert('修改完成');", true); } } } else { ScriptManager.RegisterStartupScript((System.Web.UI.Page)HttpContext.Current.Handler, this.GetType(), "ShowMessage", "alert('" + ErrorString + "');", true); } } }