private void GetContractItem() { string Is_Right = System.Web.Configuration.WebConfigurationManager.AppSettings["CONTRACTDIVUSER"].ToString().IndexOf(Session["UserID"].ToString()) > -1 ? "1" : "0"; DataView dv = new ContractDB().SelectCheckItem(Is_Right, Session["UserID"].ToString()); if (dv.Count > 0) { this.dgContract.DataSource = new ContractDB().SelectCheckItem(Is_Right, Session["UserID"].ToString()); this.dgContract.DataBind(); } else { this.CallJsFun("document.all[\"tdContract\"].style.display = 'none';"); } }
private DataTable LoadReportData(string DOC_ID) { DataTable tab = new DataTable(); if (Request.QueryString["type"] == "1") { tab = rpDocDB.GetSendRptData(DOC_ID); } else if (Request.QueryString["type"] == "contract") { tab = new ContractDB().GetRptData(DOC_ID).Table; } else { tab = rpDocDB.GetRptData(DOC_ID); } return tab; }