protected void btnSubmit_Click(object sender, EventArgs e) { string str = ""; if (radioyes.Checked == true || radiono.Checked == true) { if (radioyes.Checked) { str = "审核通过"; } if (radiono.Checked) { str = "审核未通过"; } Maticsoft.Model.NewPort.Table_project model = new Maticsoft.Model.NewPort.Table_project(); model.project_id = strid; model.project_check = str; Maticsoft.BLL.NewPort.Table_project bll = new Maticsoft.BLL.NewPort.Table_project(); bll.UpdateCheck(model); Maticsoft.Common.MessageBox.ShowAndRedirect(this, "保存成功!", "Plan_Check.aspx"); } else { Response.Write("<script>alert('请先进行审核!');</script>"); } }
private void ShowInfo(string strid) { Maticsoft.BLL.NewPort.Table_project bll = new Maticsoft.BLL.NewPort.Table_project(); Maticsoft.Model.NewPort.Table_project model = bll.GetModel(strid); this.lbl_number.Text = model.project_id.ToString(); this.lbl_type.Text = model.project_type.ToString(); this.lbl_name.Text = model.project_name.ToString(); this.lbl_owner.Text = model.project_owner.ToString(); this.lbl_address.Text = model.project_positon.ToString(); this.lbl_apc.Text = model.project_designCapacity.ToString(); this.lbl_dis.Text = model.project_coveredArea.ToString(); this.lbl_money.Text = model.project_totalInvestment.ToString(); this.lbl_startyear.Text = string.Format("{0:d}", model.project_constrStartTime); this.lbl_overyear.Text = string.Format("{0:d}", model.project_constrEndTime); this.TextContent.Text = model.project_constrContent.ToString(); /* * string radiobuttonvalue = model.project_check.ToString(); * if (radiobuttonvalue == "审核通过") * { * this.radiono.Checked = false; * this.radioyes.Checked = true; * } * if (radiobuttonvalue == "审核未通过") * { * this.radiono.Checked = true; * this.radioyes.Checked = false; * } * else * { * this.radioyes.Checked = false; * this.radiono.Checked = false; * } * Label1.Text = radiobuttonvalue;*/ }
protected void btnSubmit_Click(object sender, EventArgs e) { try { Maticsoft.Model.NewPort.Table_project model = new Maticsoft.Model.NewPort.Table_project(); model.project_id = lbl_number.Text; model.project_name = this.txtName.Text; model.project_owner = this.txtOwner.Text; model.project_positon = this.txtAddress.Text; model.project_designCapacity = decimal.Parse(this.txtCapacity.Text.Trim()); model.project_coveredArea = decimal.Parse(this.txtCoast.Text); model.project_totalInvestment = decimal.Parse(this.txtTotal.Text); model.project_check = "待审核"; model.project_constrStartTime = Convert.ToDateTime(this.input1.Value); model.project_constrEndTime = Convert.ToDateTime(this.input2.Value); model.project_constrContent = this.txtA2.Value; model.project_writer = strid; model.project_state = "新开工"; model.project_type = DDL_PlayType.SelectedValue.Trim(); model.project_year = DDL_Year.SelectedValue.Trim(); model.project_class = DropDownList_PlanType.SelectedValue.Trim(); model.project_area = txtArea.Text; model.project_scale = decimal.Parse(txtCoast.Text); Maticsoft.BLL.NewPort.Table_project bll = new Maticsoft.BLL.NewPort.Table_project(); bll.Add(model); Maticsoft.Common.MessageBox.ShowAndRedirect(this, "保存成功!", "planSearch.aspx"); } catch (Exception e2) { Maticsoft.Common.MessageBox.ShowAndRedirect(this, "填写错误,请重新确认后再提交!", "addnewplan.aspx"); } }
private void ShowInfo(string estrid) { Maticsoft.BLL.NewPort.Table_project bll = new Maticsoft.BLL.NewPort.Table_project(); Maticsoft.Model.NewPort.Table_project model = bll.GetModel(sfid); this.lbl_enumber.Text = model.project_id.ToString(); this.lbl_PlanType.Text = model.project_type.ToString(); this.lbl_ename.Text = model.project_name.ToString(); this.lbl_eowner.Text = model.project_owner.ToString(); this.lbl_eaddress.Text = model.project_positon.ToString(); this.lbl_emoney.Text = model.project_totalInvestment.ToString(); }
protected void Page_Load(object sender, EventArgs e) { if (Session["isLogin"] != "ok") { Response.Redirect("../Login.aspx"); } if (Request.QueryString["id"] != null) { strid = Request.QueryString["id"].ToString(); Maticsoft.BLL.NewPort.Table_project bll = new Maticsoft.BLL.NewPort.Table_project(); bll.Delete(strid); } }
private void mShowInfo(string strid) { Maticsoft.BLL.NewPort.Table_project bll = new Maticsoft.BLL.NewPort.Table_project(); Maticsoft.Model.NewPort.Table_project model = bll.GetModel(strid); this.lbl_mnumber.Text = model.project_id.ToString(); this.lbl_mtype.Text = model.project_type.ToString(); this.lbl_mname.Text = model.project_name.ToString(); this.lbl_mowner.Text = model.project_owner.ToString(); this.lbl_maddress.Text = model.project_positon.ToString(); this.lbl_mapc.Text = model.project_designCapacity.ToString(); this.lbl_mdis.Text = model.project_coveredArea.ToString(); this.lbl_mmoney.Text = model.project_totalInvestment.ToString(); this.lbl_mstartyear.Text = model.project_constrStartTime.ToString(); this.lbl_moveryear.Text = model.project_constrEndTime.ToString(); }
private void eShowInfo(string estrid) { Maticsoft.BLL.NewPort.Table_project bll = new Maticsoft.BLL.NewPort.Table_project(); Maticsoft.Model.NewPort.Table_project model = bll.GetModel(estrid); this.lbl_enumber.Text = model.project_id.ToString(); this.input1.Value = string.Format("{0:d}", model.project_constrStartTime); this.input2.Value = string.Format("{0:d}", model.project_constrEndTime); this.lbl_ename.Text = model.project_name.ToString(); this.lbl_eowner.Text = model.project_owner.ToString(); this.lbl_eaddress.Text = model.project_positon.ToString(); this.lbl_eapc.Text = model.project_designCapacity.ToString(); this.lbl_edis.Text = model.project_coveredArea.ToString(); this.lbl_emoney.Text = model.project_totalInvestment.ToString(); this.eTextContent.Text = model.project_constrContent.ToString(); this.DDLState.SelectedValue = model.project_state.ToString(); }
public void BindData() { this.GridView_Project.Visible = true; // Maticsoft.BLL.NewPort.projecttable bll = new Maticsoft.BLL.NewPort.projecttable(); Maticsoft.BLL.NewPort.Table_project bll = new Maticsoft.BLL.NewPort.Table_project(); this.GridView_Project.DataSourceID = null; DataSet ds = new DataSet(); StringBuilder strWhere = new StringBuilder(); strWhere.AppendFormat("("); strWhere.AppendFormat("project_year like '%{0}%' and ", DDL_Year1.SelectedValue.Trim()); if (cb_alltype.Checked == false) { if (cb_Ganhang.Checked) { strWhere.AppendFormat("project_type like '%{0}%' or ", "港航项目"); } if (cb_Jishuyun.Checked) { strWhere.AppendFormat("project_type like '%{0}%' or ", "集疏运项目"); } if (cb_Lingang.Checked) { strWhere.AppendFormat("project_type like '%{0}%' or ", "临港产业项目"); } strWhere.AppendFormat("project_type like '%{0}%' )and (", "visual2010"); } if (cb_allstate.Checked == false) { if (cb_New.Checked) { strWhere.AppendFormat("project_state like '%{0}%' or ", "新开工"); } if (cb_Goon.Checked) { strWhere.AppendFormat("project_state like '%{0}%' or ", "续建"); } strWhere.AppendFormat("project_state like '%{0}%' )and (", "visual2010"); } if (cb_allarea.Checked == false) { if (cb_Wuhan.Checked) { strWhere.AppendFormat("project_area like '%{0}%' or ", "武汉"); } if (cb_Ezhou.Checked) { strWhere.AppendFormat("project_area like '%{0}%' or ", "鄂州"); } if (cb_Huanggan.Checked) { strWhere.AppendFormat("project_area like '%{0}%' or ", "黄冈"); } if (cb_Xianning.Checked) { strWhere.AppendFormat("project_area like '%{0}%' or ", "咸宁"); } if (cb_Xinzhou.Checked) { strWhere.AppendFormat("project_area like '%{0}%' or ", "新洲"); } if (cb_Hannan.Checked) { strWhere.AppendFormat("project_area like '%{0}%' or ", "汉南"); } if (cb_HGQ.Checked) { strWhere.AppendFormat("project_area like '%{0}%' or ", "化工区"); } if (cb_XGT.Checked) { strWhere.AppendFormat("project_area like '%{0}%' or ", "新港投"); } if (cb_Wugan.Checked) { strWhere.AppendFormat("project_area like '%{0}%' or ", "武港"); } if (cb_Jiangxia.Checked) { strWhere.AppendFormat("project_area like '%{0}%' or ", "江夏"); } strWhere.AppendFormat("project_area like '%{0}%')", "visual2010"); } else { strWhere.AppendFormat("'visual2010' like '%{0}%')", "visual2010"); } ds = bll.GetList(strWhere.ToString()); GridView_Project.DataSource = ds; GridView_Project.DataBind(); }
protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e) { Maticsoft.BLL.NewPort.Table_project bll = new Maticsoft.BLL.NewPort.Table_project(); Maticsoft.Model.NewPort.Table_project model = bll.GetModel(DropDownList1.SelectedValue.ToString().Trim()); this.lblName.Text = model.project_name.ToString(); }