private void BindList() { TB_QUOTA_Bll bll = new TB_QUOTA_Bll(); string str = this.Session["pk_corp"].ToString(); DataSet list = bll.GetList("(trim(COMPANY_CODE)='" + str + "' or trim(PD_QUOTA_INPUT_COMPANY)='" + str + "')"); if ((list != null) && (list.Tables.Count > 0)) { this.gvResult.DataSource = list.Tables[0]; this.gvResult.DataBind(); } }
private void ShowInfo(string PD_QUOTA_CODE) { if (!string.IsNullOrEmpty(PD_QUOTA_CODE)) { TB_QUOTA_Bll bll = new TB_QUOTA_Bll(); if (bll.GetList(" PD_QUOTA_CODE='" + PD_QUOTA_CODE + "'") != null) { TB_QUOTA_Model modelByCODE = bll.GetModelByCODE(PD_QUOTA_CODE); this.txtPD_QUOTA_CODE.Enabled = false; this.lblAUTO_ID.Text = modelByCODE.AUTO_NO.ToString(); this.txtPD_QUOTA_CODE.Text = modelByCODE.PD_QUOTA_CODE; this.txtPD_QUOTA_NAME.Text = modelByCODE.PD_QUOTA_NAME; this.ddlPD_YEAR.SelectedValue = modelByCODE.PD_YEAR; this.txtPD_QUOTA_LWJG.Text = modelByCODE.PD_QUOTA_LWJG.ToString(); this.txtPD_QUOTA_LWJG_NAME.Text = modelByCODE.PD_QUOTA_LWJG_NAME.ToString(); this.ddlPD_QUOTA_IFUP.SelectedValue = modelByCODE.PD_QUOTA_IFUP; this.ddlPD_QUOTA_ZJXZ.Text = modelByCODE.PD_QUOTA_ZJXZ; this.txtPD_QUOTA_TARGET.Text = modelByCODE.PD_QUOTA_TARGET; this.txtPD_QUOTA_STANDARD.Text = modelByCODE.PD_QUOTA_STANDARD; this.txtPD_QUOTA_BASIS.Text = modelByCODE.PD_QUOTA_BASIS; this.ddlPD_QUOTA_IFXZQS.SelectedValue = modelByCODE.PD_QUOTA_IFXZQS.ToString(); this.ddlPD_QUOTA_IFPASS.SelectedValue = modelByCODE.PD_QUOTA_IFPASS; this.txtPD_QUOTA_BASIS_JG.Text = modelByCODE.PD_QUOTA_BASIS_JG; this.txtPD_QUOTA_INPUT_MAN.Text = modelByCODE.PD_QUOTA_INPUT_MAN; this.txtPD_QUOTA_PASS_DATE.Text = modelByCODE.PD_QUOTA_PASS_DATE.ToString(); this.txtPD_QUOTA_ACCEPT_MAN.Text = modelByCODE.PD_QUOTA_ACCEPT_MAN; this.txtPD_QUOTA_PASS_MAN.Text = modelByCODE.PD_QUOTA_PASS_MAN; this.ddlPD_QUOTA_ACCEPT_COMPANY.SelectedValue = modelByCODE.PD_QUOTA_ACCEPT_COMPANY; this.txtPD_QUOTA_ACCEPT_DATE.Text = modelByCODE.PD_QUOTA_ACCEPT_DATE.ToString(); this.ddlPD_QUOTA_IFLLYQS.SelectedValue = modelByCODE.PD_QUOTA_IFLLYQS.ToString(); this.ddlPD_QUOTA_XZ_ACCEPT_COMPANY.SelectedValue = modelByCODE.PD_QUOTA_XZ_ACCEPT_COMPANY; this.txtPD_QUOTA_XZ_ACCEPT_DATE.Text = modelByCODE.PD_QUOTA_XZ_ACCEPT_DATE.ToString(); this.txtPD_QUOTA_MONEY_TOTAL.Text = modelByCODE.PD_QUOTA_MONEY_TOTAL.ToString(); this.ddlPD_QUOTA_DEPART.SelectedValue = modelByCODE.PD_QUOTA_DEPART; this.txtPD_QUOTA_JGYQ.Text = modelByCODE.PD_QUOTA_JGYQ; this.txtPD_QUOTA_INPUT_DATE.Text = modelByCODE.PD_QUOTA_INPUT_DATE.ToString(); this.ddlPD_QUOTA_INPUT_COMPANY.SelectedValue = modelByCODE.PD_QUOTA_INPUT_COMPANY; this.txtPD_QUOTA_XZ_ACCEPT_MAN.Text = modelByCODE.PD_QUOTA_XZ_ACCEPT_MAN; this.ddlPD_PROJ_STATUS.SelectedValue = modelByCODE.PD_PROJ_STATUS; this.ddlPD_PROJ_LAST_AUDIT_STATUS.SelectedValue = modelByCODE.PD_PROJ_LAST_AUDIT_STATUS; this.ddlPD_IS_RETURN.SelectedValue = modelByCODE.PD_IS_RETURN.ToString(); this.ddlPD_ISOUT_QUOTA.SelectedValue = modelByCODE.PD_ISOUT_QUOTA.ToString(); this.Bind1(PD_QUOTA_CODE, modelByCODE); } } }