private void ShowInfo() { //生成乡镇列表 ControlBindHelper.DropDownListBind(this.ddlVillageCode, "Sys_Dictionary", "BusinName", "BusinID", "BusinTypeID='1002' and IsForbid='0'", "请选择所属乡镇", ""); //生成组织部门列表 ControlBindHelper.DropDownListBind(this.ddlOrgID, "Sys_Organization", "OrgName", "OrgCode", "OrgType='2' and IsForbid='0'", "请选所属煤管站", "-1"); //bll.OrgDllBind(this.ddlOrgID); //生成煤矿状态 ControlBindHelper.DropDownListBind(this.ddlCollState, "Sys_Dictionary", "BusinName", "BusinID", "BusinTypeID='1007' and IsForbid='0'", "请选择煤矿状态", ""); if (strCustomer == "FuYuan") { this.trParcel.Visible = true; //片区 ControlBindHelper.DropDownListBind(this.ddlParcel, "Sys_Dictionary", "BusinName", "BusinID", "BusinTypeID='1018' and IsForbid='0'", "请选择所属片区", ""); } //生成煤矿属性 用于标识该煤矿为正常煤矿、洗煤厂 ControlBindHelper.DropDownListBind(this.ddlCollProperty, "Sys_Dictionary", "BusinName", "BusinID", "BusinTypeID='1019' and IsForbid='0'", "请选择煤矿属性", ""); if (Request.QueryString["CollID"] != null) { model = bll.GetModel(Request.QueryString["CollID"].ToString()); //this.txtCollCode.Text = model.CollCode; this.txtCollName.Text = model.CollName; if (model.VillageCode != "") { this.ddlOrgID.SelectedValue = model.OrgCode.ToString(); } else { this.ddlOrgID.SelectedIndex = 0; } if (model.VillageCode != "") { this.ddlVillageCode.SelectedValue = model.VillageCode; } else { this.ddlVillageCode.SelectedIndex = 0; } this.txtMineOwner.Text = model.MineOwner; this.txtMinePhone.Text = model.MinePhone; this.txtYearOutput.Text = model.YearOutput.ToString(); if (model.CollProperty != "") { this.ddlCollProperty.SelectedValue = model.CollProperty; } else { this.ddlCollProperty.SelectedIndex = 0; } if (model.CollState != "") { this.ddlCollState.SelectedValue = model.CollState; } else { this.ddlCollState.SelectedIndex = 0; } if (model.ImageLicence != "" && model.ImageLicence != null) { imgImageLicence.Src = "show.aspx?ImageID=" + model.ImageLicence + "&d=" + DateTime.Now.ToString("yyyyMMddhhmmss"); } if (model.ImageRevenue != "" && model.ImageRevenue != null) { imgImageRevenue.Src = "show.aspx?ImageID=" + model.ImageRevenue + "&d=" + DateTime.Now.ToString("yyyyMMddhhmmss"); } if (model.ImageCompetency != "" && model.ImageCompetency != null) { imgImageCompetency.Src = "show.aspx?ImageID=" + model.ImageCompetency + "&d=" + DateTime.Now.ToString("yyyyMMddhhmmss"); } hidImageLicence.Value = model.ImageLicence; hidImageRevenue.Value = model.ImageRevenue; hidImageCompetency.Value = model.ImageCompetency; this.txtRemark.Text = model.Remark; this.ddlIsForbid.SelectedValue = model.IsForbid; if (strCustomer == "FuYuan") { this.ddlParcel.SelectedValue = model.ParcelCode; } //判断煤矿是否已经发过标示卡,如果发过,则不允许修改煤矿编号 //if ("" != bll.Getresult("CollCode", "TT_MarkedCard", "CollCode ='" + Request.QueryString["CollID"].ToString() + "'")) //{ // this.ViewState["CollCode"] = txtCollCode.Text; // txtCollCode.Enabled = false; //} hf_action.Value = "edit"; } else { // this.txtCollCode.Text = ""; this.txtCollName.Text = ""; this.ddlOrgID.SelectedIndex = 0; this.ddlVillageCode.SelectedIndex = 0; this.txtMineOwner.Text = ""; this.txtMinePhone.Text = ""; this.txtYearOutput.Text = "0"; this.ddlCollState.SelectedIndex = 0; hidImageLicence.Value = ""; hidImageRevenue.Value = ""; hidImageCompetency.Value = ""; this.imgImageLicence.Visible = false; this.imgImageRevenue.Visible = false; this.imgImageCompetency.Visible = false; this.txtRemark.Text = ""; //this.ddlIsForbid.SelectedValue = "-1"; } ScriptManager.RegisterStartupScript(this.upDepartAdd, this.GetType(), "", "initPic();", true); }