protected void imgBtnOK_Click(object sender, ImageClickEventArgs e) { if (this.drpSCX.SelectedValue == "0") { this.PrintfError("请选择生产线!"); return; } this.ReportView1.ServerUrl = this.ReportURL; if (Common.IsOldData) { this.ReportView1.ReportPath = "/XGReportO/MonthPC"; } else { this.ReportView1.ReportPath = "/XGReportC/MonthPC"; } ReportView1.Parameters = Acctrue.WM_WES.ReportingServices.ReportView.multiState.False; ReportView1.DocMap = Acctrue.WM_WES.ReportingServices.ReportView.multiState.False; ReportView1.Toolbar = Acctrue.WM_WES.ReportingServices.ReportView.multiState.True; ReportView1.SetParameter("scx", this.drpSCX.SelectedValue); string date = this.drpYear.SelectedValue + "-" + this.drpMonth.SelectedValue + "-01"; string strSCXname = this.drpSCX.SelectedItem.Text.Split('|')[1].Trim(); ReportView1.SetParameter("rpdate", date); ReportView1.SetParameter("OrderKey", this.drpOrderKey.SelectedValue); ReportView1.SetParameter("scxname", Server.UrlEncode(strSCXname)); ReportView1.SetParameter("username", Server.UrlEncode(this.CUSER.UserName)); }
private void SetReport() { string PDDH = ""; string CKID = ""; string UserName = this.CUSER.UserName; string DJZT = ""; if (!string.IsNullOrEmpty(Request["PDDH"])) { PDDH = Request["PDDH"]; } DataSet ds = PDParam.GetList("PDDH = '" + PDDH + "'"); if (ds != null && ds.Tables[0].Rows.Count > 0) { CKID = ds.Tables[0].Rows[0]["CK"].ToString(); DJZT = ds.Tables[0].Rows[0]["DJZT"].ToString(); } this.ReportView1.ServerUrl = this.ReportURL; if (Common.IsOldData) { this.ReportView1.ReportPath = "/XGReportO/ReportCPD"; } else { this.ReportView1.ReportPath = "/XGReportC/ReportCPD"; } ReportView1.Parameters = Acctrue.WM_WES.ReportingServices.ReportView.multiState.False; ReportView1.DocMap = Acctrue.WM_WES.ReportingServices.ReportView.multiState.False; ReportView1.Toolbar = Acctrue.WM_WES.ReportingServices.ReportView.multiState.True; ReportView1.SetParameter("CKID", CKID); ReportView1.SetParameter("PDDH", PDDH); ReportView1.SetParameter("ZBR", Server.UrlEncode(UserName)); ReportView1.SetParameter("DJZT", Server.UrlEncode(DJZT)); }
//设置报表 private void SetReport() { string store = this.drpStore.SelectedValue; string pch = ""; if (this.drpPCH.SelectedValue == "0") { pch = Server.UrlEncode("全部"); } else { pch = this.drpPCH.SelectedValue; } string orderKey = this.drpOrderBy.SelectedValue; this.ReportView1.ServerUrl = this.ReportURL; if (Common.IsOldData) { this.ReportView1.ReportPath = "/XGReportO/KCList"; } else { this.ReportView1.ReportPath = "/XGReportC/KCList"; } ReportView1.Parameters = Acctrue.WM_WES.ReportingServices.ReportView.multiState.False; ReportView1.DocMap = Acctrue.WM_WES.ReportingServices.ReportView.multiState.False; ReportView1.Toolbar = Acctrue.WM_WES.ReportingServices.ReportView.multiState.True; ReportView1.SetParameter("ck", store); ReportView1.SetParameter("PCH", pch); ReportView1.SetParameter("OrderKey", orderKey); string[] strCKInfos = this.drpStore.SelectedItem.Text.Split('|'); string strckName = "(" + strCKInfos[0].Trim() + ")" + strCKInfos[1]; ReportView1.SetParameter("ckName", Server.UrlEncode(strckName)); }
private void SetReport() { try { string YSDH = ""; string CKID = ""; if (!string.IsNullOrEmpty(Request["YSDH"])) { YSDH = Request["YSDH"]; } if (!string.IsNullOrEmpty(Request["CKID"])) { CKID = Request["CKID"]; } this.ReportView1.ServerUrl = this.ReportURL; if (Common.IsOldData) { this.ReportView1.ReportPath = "/XGReportO/ReportPDCYB"; } else { this.ReportView1.ReportPath = "/XGReportC/ReportPDCYB"; } ReportView1.Parameters = Acctrue.WM_WES.ReportingServices.ReportView.multiState.False; ReportView1.DocMap = Acctrue.WM_WES.ReportingServices.ReportView.multiState.False; ReportView1.Toolbar = Acctrue.WM_WES.ReportingServices.ReportView.multiState.True; ReportView1.SetParameter("YSDH", YSDH); ReportView1.SetParameter("CKID", CKID); } catch { this.PrintfError("生成报表出错,请重试"); return; } }
private void SetReport() { string store = ""; string date = ""; string orderKey = ""; if (!string.IsNullOrEmpty(Request["STORE"])) { store = Request["STORE"]; } if (!string.IsNullOrEmpty(Request["DATE"])) { date = Request["DATE"]; try { Convert.ToDateTime(date); } catch { this.PrintfError("日期格式错误!"); return; } } if (!string.IsNullOrEmpty(Request["ORDERKEY"])) { orderKey = Request["ORDERKEY"]; } this.ReportView1.ServerUrl = this.ReportURL; if (Common.IsOldData) { this.ReportView1.ReportPath = "/XGReportO/DayReport"; } else { this.ReportView1.ReportPath = "/XGReportC/DayReport"; } ReportView1.Parameters = Acctrue.WM_WES.ReportingServices.ReportView.multiState.False; ReportView1.DocMap = Acctrue.WM_WES.ReportingServices.ReportView.multiState.False; ReportView1.Toolbar = Acctrue.WM_WES.ReportingServices.ReportView.multiState.True; ReportView1.SetParameter("ck", store); int year = Convert.ToDateTime(date).Year; int month = Convert.ToDateTime(date).Month; string startDate = year.ToString() + "-" + month.ToString() + "-" + "1"; ReportView1.SetParameter("startdate", startDate); ReportView1.SetParameter("enddate", date); ReportView1.SetParameter("username", Server.UrlEncode(this.CUSER.UserName)); }
//设置报表 private void SetReport() { this.ReportView1.ServerUrl = this.ReportURL; if (Common.IsOldData) { this.ReportView1.ReportPath = "/XGReportO/ReportTHXP"; } else { this.ReportView1.ReportPath = "/XGReportC/ReportTHXP"; } ReportView1.Parameters = Acctrue.WM_WES.ReportingServices.ReportView.multiState.False; ReportView1.DocMap = Acctrue.WM_WES.ReportingServices.ReportView.multiState.False; ReportView1.Toolbar = Acctrue.WM_WES.ReportingServices.ReportView.multiState.True; ReportView1.SetParameter("FYDH", Request["FYDH"]); ReportView1.SetParameter("UserName", Server.UrlEncode(this.CUSER.UserName)); }
private void SetReport() { string ICID = ""; string KHName = ""; string CPH = ""; string Proposer = ""; string UserName = this.CUSER.UserName; if (!string.IsNullOrEmpty(Request["ICID"])) { ICID = Request["ICID"]; } if (!string.IsNullOrEmpty(Request["KHName"])) { KHName = Request["KHName"]; } if (!string.IsNullOrEmpty(Request["CPH"])) { CPH = Request["CPH"]; } if (!string.IsNullOrEmpty(Request["Proposer"])) { Proposer = Request["Proposer"]; } this.ReportView1.ServerUrl = this.ReportURL; if (Common.IsOldData) { this.ReportView1.ReportPath = "/XGReportO/ReportIC"; } else { this.ReportView1.ReportPath = "/XGReportC/ReportIC"; } ReportView1.Parameters = Acctrue.WM_WES.ReportingServices.ReportView.multiState.False; ReportView1.DocMap = Acctrue.WM_WES.ReportingServices.ReportView.multiState.False; ReportView1.Toolbar = Acctrue.WM_WES.ReportingServices.ReportView.multiState.True; ReportView1.SetParameter("ICID", Server.UrlEncode(ICID)); ReportView1.SetParameter("KHName", Server.UrlEncode(KHName)); ReportView1.SetParameter("CPH", Server.UrlEncode(CPH)); ReportView1.SetParameter("Proposer", Server.UrlEncode(Proposer)); ReportView1.SetParameter("ZBR", Server.UrlEncode(UserName)); }
//设置报表 private void SetReport() { this.ReportView1.ServerUrl = this.ReportURL; if (Common.IsOldData) { this.ReportView1.ReportPath = "/XGReportO/ReportPDDataExcel"; } else { this.ReportView1.ReportPath = "/XGReportC/ReportPDDataExcel"; } ReportView1.Parameters = Acctrue.WM_WES.ReportingServices.ReportView.multiState.False; ReportView1.DocMap = Acctrue.WM_WES.ReportingServices.ReportView.multiState.False; ReportView1.Toolbar = Acctrue.WM_WES.ReportingServices.ReportView.multiState.True; if (!string.IsNullOrEmpty(Request["YSDH"])) { ReportView1.SetParameter("YSDH", Request["YSDH"]); } if (!string.IsNullOrEmpty(Request["PDDH"])) { ReportView1.SetParameter("PDDH", Request["PDDH"]); } if (!string.IsNullOrEmpty(Request["WLH"])) { ReportView1.SetParameter("WLH", Request["WLH"]); } if (!string.IsNullOrEmpty(Request["PCH"])) { ReportView1.SetParameter("PCH", Request["PCH"]); } if (!string.IsNullOrEmpty(Request["SX"])) { ReportView1.SetParameter("SX", Request["SX"]); } if (!string.IsNullOrEmpty(Request["chkNoNCWLisChecked"])) { ReportView1.SetParameter("chkNoNCWLisChecked", Request["chkNoNCWLisChecked"]); } }
private void SetReprotUrl() { this.ReportView1.ServerUrl = this.ReportURL; if (Common.IsOldData) { this.ReportView1.ReportPath = "/XGReportO/WorkLoad"; } else { this.ReportView1.ReportPath = "/XGReportC/WorkLoad"; } ReportView1.Parameters = Acctrue.WM_WES.ReportingServices.ReportView.multiState.False; ReportView1.DocMap = Acctrue.WM_WES.ReportingServices.ReportView.multiState.False; ReportView1.Toolbar = Acctrue.WM_WES.ReportingServices.ReportView.multiState.True; string oper = ""; if (this.drpOpern.SelectedIndex == 0) { oper = "全部"; } else { oper = this.drpOpern.SelectedValue; } string type = ""; if (this.drpType.SelectedIndex == 0) { type = "全部"; } else { type = this.drpType.SelectedValue; } ReportView1.SetParameter("Oper", Server.UrlEncode(oper)); ReportView1.SetParameter("OperType", Server.UrlEncode(type)); ReportView1.SetParameter("StartDate", this.txtStartTime.Text); ReportView1.SetParameter("EndDate", this.txtEndTime.Text); }
private void SetReportURL() { this.ReportView1.ServerUrl = this.ReportURL; ReportView1.Parameters = Acctrue.WM_WES.ReportingServices.ReportView.multiState.False; ReportView1.DocMap = Acctrue.WM_WES.ReportingServices.ReportView.multiState.False; ReportView1.Toolbar = Acctrue.WM_WES.ReportingServices.ReportView.multiState.True; if (Common.IsOldData) { this.ReportView1.ReportPath = "/XGReportO/OutBar"; } else { this.ReportView1.ReportPath = "/XGReportC/OutBar"; } if (!string.IsNullOrEmpty(Request["ck"])) { ReportView1.SetParameter("CK", Request["ck"]); } if (!string.IsNullOrEmpty(Request["sx"])) { ReportView1.SetParameter("SX", Server.UrlEncode(Request["sx"])); } if (!string.IsNullOrEmpty(Request["wlh"])) { ReportView1.SetParameter("WLH", Request["wlh"]); } if (!string.IsNullOrEmpty(Request["ph"])) { ReportView1.SetParameter("PH", Server.UrlEncode(Request["ph"])); } if (!string.IsNullOrEmpty(Request["hw"])) { ReportView1.SetParameter("HW", Request["hw"]); } if (!string.IsNullOrEmpty(Request["gg"])) { ReportView1.SetParameter("GG", Server.UrlEncode(Request["gg"])); } if (!string.IsNullOrEmpty(Request["bb"])) { ReportView1.SetParameter("BB", Server.UrlEncode(Request["bb"])); } if (!string.IsNullOrEmpty(Request["gh"])) { ReportView1.SetParameter("GH", Request["gh"]); } if (!string.IsNullOrEmpty(Request["ErrSeason"])) { ReportView1.SetParameter("ErrSeason", Request["ErrSeason"]); } if (!string.IsNullOrEmpty(Request["SCXBM"])) { ReportView1.SetParameter("SCXBM", Request["SCXBM"]); } if (!string.IsNullOrEmpty(Request["pcinfo"])) { ReportView1.SetParameter("pcinfo", Request["pcinfo"]); } if (!string.IsNullOrEmpty(Request["barcode"])) { ReportView1.SetParameter("barcode", Server.UrlEncode(Request["barcode"])); } if (!string.IsNullOrEmpty(Request["free1"])) { ReportView1.SetParameter("free1", Server.UrlEncode(Request["free1"])); } if (!string.IsNullOrEmpty(Request["free2"])) { ReportView1.SetParameter("free2", Server.UrlEncode(Request["free2"])); } if (!string.IsNullOrEmpty(Request["free3"])) { ReportView1.SetParameter("free3", Server.UrlEncode(Request["free3"])); } if (!string.IsNullOrEmpty(Request["MPCH"])) { ReportView1.SetParameter("MPCH", Server.UrlEncode(Request["MPCH"])); } if (!string.IsNullOrEmpty(Request["MIPCH"])) { ReportView1.SetParameter("MIPCH", Server.UrlEncode(Request["MIPCH"])); } if (!string.IsNullOrEmpty(Request["PCH"])) { ReportView1.SetParameter("PCH", Request["PCH"]); } if (!string.IsNullOrEmpty(Request["MP"])) { ReportView1.SetParameter("MP", Server.UrlEncode(Request["MP"])); } if (!string.IsNullOrEmpty(Request["MIP"])) { ReportView1.SetParameter("MIP", Request["MIP"]); } }
//设置报表 private void SetReport() { this.ReportView1.ServerUrl = this.ReportURL; if (Common.IsOldData) { this.ReportView1.ReportPath = "/XGReportO/ReportDPP"; } else { this.ReportView1.ReportPath = "/XGReportC/ReportDPP"; } ReportView1.Parameters = Acctrue.WM_WES.ReportingServices.ReportView.multiState.False; ReportView1.DocMap = Acctrue.WM_WES.ReportingServices.ReportView.multiState.False; ReportView1.Toolbar = Acctrue.WM_WES.ReportingServices.ReportView.multiState.True; if (!string.IsNullOrEmpty(Request["ISCK"])) { ReportView1.SetParameter("ISCK", "true"); } if (!string.IsNullOrEmpty(Request["ISHW"])) { ReportView1.SetParameter("ISHW", "true"); } if (!string.IsNullOrEmpty(Request["ISWLH"])) { ReportView1.SetParameter("ISWLH", "true"); } if (!string.IsNullOrEmpty(Request["ISWLMC"])) { ReportView1.SetParameter("ISWLMC", "true"); } if (!string.IsNullOrEmpty(Request["ISPCH"])) { ReportView1.SetParameter("ISPCH", "true"); } if (!string.IsNullOrEmpty(Request["ISPH"])) { ReportView1.SetParameter("ISPH", "true"); } if (!string.IsNullOrEmpty(Request["ISGG"])) { ReportView1.SetParameter("ISGG", "true"); } if (!string.IsNullOrEmpty(Request["ISSX"])) { ReportView1.SetParameter("ISSX", "true"); } if (!string.IsNullOrEmpty(Request["ISSL"])) { ReportView1.SetParameter("ISSL", "true"); } if (!string.IsNullOrEmpty(Request["ISZL"])) { ReportView1.SetParameter("ISZL", "true"); } if (!string.IsNullOrEmpty(Request["CK"])) { ReportView1.SetParameter("CK", Request["CK"]); } if (!string.IsNullOrEmpty(Request["WLH"])) { ReportView1.SetParameter("WLH", Request["WLH"]); } if (!string.IsNullOrEmpty(Request["HW"])) { ReportView1.SetParameter("HW", Request["HW"]); } if (!string.IsNullOrEmpty(Request["PCH"])) { ReportView1.SetParameter("PCH", Request["PCH"]); } if (!string.IsNullOrEmpty(Request["SX"])) { ReportView1.SetParameter("SX", Request["SX"]); } if (!string.IsNullOrEmpty(Request["PH"])) { ReportView1.SetParameter("PH", Request["PH"]); } if (!string.IsNullOrEmpty(Request["GG"])) { ReportView1.SetParameter("GG", Request["GG"]); } if (!string.IsNullOrEmpty(Request["GGcopy"])) { ReportView1.SetParameter("GGcopy", Request["GGcopy"]); } if (!string.IsNullOrEmpty(Request["pcinfo"])) { ReportView1.SetParameter("pcinfo", Request["pcinfo"]); } if (!string.IsNullOrEmpty(Request["RKRQfrom"])) { ReportView1.SetParameter("RKRQfrom", Request["RKRQfrom"]); } if (!string.IsNullOrEmpty(Request["RKRQto"])) { ReportView1.SetParameter("RKRQto", Request["RKRQto"]); } if (!string.IsNullOrEmpty(Request["zpdjbz"])) { ReportView1.SetParameter("zpdjbz", Request["zpdjbz"]); } }
//设置报表 private void SetReport() { this.ReportView1.ServerUrl = this.ReportURL; if (Common.IsOldData) { this.ReportView1.ReportPath = "/XGReportO/ReportRKZB"; } else { this.ReportView1.ReportPath = "/XGReportC/ReportRKZB"; } ReportView1.Parameters = Acctrue.WM_WES.ReportingServices.ReportView.multiState.False; ReportView1.DocMap = Acctrue.WM_WES.ReportingServices.ReportView.multiState.False; ReportView1.Toolbar = Acctrue.WM_WES.ReportingServices.ReportView.multiState.True; if (!string.IsNullOrEmpty(Request["ISRKDH"])) { ReportView1.SetParameter("ISRKDH", "true"); } if (!string.IsNullOrEmpty(Request["ISCK"])) { ReportView1.SetParameter("ISCK", "true"); } if (!string.IsNullOrEmpty(Request["ISPCH"])) { ReportView1.SetParameter("ISPCH", "true"); } if (!string.IsNullOrEmpty(Request["ISSX"])) { ReportView1.SetParameter("ISSX", "true"); } if (!string.IsNullOrEmpty(Request["ISWLH"])) { ReportView1.SetParameter("ISWLH", "true"); } if (!string.IsNullOrEmpty(Request["ISPH"])) { ReportView1.SetParameter("ISPH", "true"); } if (!string.IsNullOrEmpty(Request["ISGG"])) { ReportView1.SetParameter("ISGG", "true"); } if (!string.IsNullOrEmpty(Request["ISSL"])) { ReportView1.SetParameter("ISSL", "true"); } if (!string.IsNullOrEmpty(Request["ISZL"])) { ReportView1.SetParameter("ISZL", "true"); } if (!string.IsNullOrEmpty(Request["ISCPH"])) { ReportView1.SetParameter("ISCPH", "true"); } if (!string.IsNullOrEmpty(Request["ISRKTime"])) { ReportView1.SetParameter("ISRKTime", "true"); } if (!string.IsNullOrEmpty(Request["ISRKType"])) { ReportView1.SetParameter("ISRKType", "true"); } if (!string.IsNullOrEmpty(Request["ISWLMC"])) { ReportView1.SetParameter("ISWLMC", "true"); } if (!string.IsNullOrEmpty(Request["ISFREE1"])) { ReportView1.SetParameter("ISFREE1", "true"); } if (!string.IsNullOrEmpty(Request["ISFREE2"])) { ReportView1.SetParameter("ISFREE2", "true"); } if (!string.IsNullOrEmpty(Request["ISFREE3"])) { ReportView1.SetParameter("ISFREE3", "true"); } if (!string.IsNullOrEmpty(Request["RKDH"])) { ReportView1.SetParameter("RKDH", Request["RKDH"]); } if (!string.IsNullOrEmpty(Request["CK"])) { ReportView1.SetParameter("CK", Request["CK"]); } if (!string.IsNullOrEmpty(Request["PCH"])) { ReportView1.SetParameter("PCH", Request["PCH"]); } if (!string.IsNullOrEmpty(Request["SX"])) { ReportView1.SetParameter("SX", Request["SX"]); } if (!string.IsNullOrEmpty(Request["WLH"])) { ReportView1.SetParameter("WLH", Request["WLH"]); } if (!string.IsNullOrEmpty(Request["PH"])) { ReportView1.SetParameter("PH", Request["PH"]); } if (!string.IsNullOrEmpty(Request["GG"])) { ReportView1.SetParameter("GG", Request["GG"]); } if (!string.IsNullOrEmpty(Request["CPH"])) { ReportView1.SetParameter("CPH", Request["CPH"]); } if (!string.IsNullOrEmpty(Request["fromtime"])) { ReportView1.SetParameter("fromtime", Request["fromtime"]); } if (!string.IsNullOrEmpty(Request["totime"])) { ReportView1.SetParameter("totime", Request["totime"]); } if (!string.IsNullOrEmpty(Request["RKType"])) { ReportView1.SetParameter("RKType", Request["RKType"]); } if (!string.IsNullOrEmpty(Request["SCXBM"])) { ReportView1.SetParameter("scxbm", Request["SCXBM"]); } if (!string.IsNullOrEmpty(Request["BB"])) { ReportView1.SetParameter("BB", Request["BB"]); } if (!string.IsNullOrEmpty(Request["pcinfo"])) { ReportView1.SetParameter("pcinfo", Request["pcinfo"]); } if (!string.IsNullOrEmpty(Request["free1"])) { ReportView1.SetParameter("free1", Request["free1"]); } if (!string.IsNullOrEmpty(Request["free2"])) { ReportView1.SetParameter("free2", Request["free2"]); } if (!string.IsNullOrEmpty(Request["free3"])) { ReportView1.SetParameter("free3", Request["free3"]); } }
//设置报表 private void SetReport() { this.ReportView1.ServerUrl = this.ReportURL; string Type = Request["TYPE"]; string hidCKDH = Request["hidCKDH"]; switch (Type) { case "0": if (Common.IsOldData) { this.ReportView1.ReportPath = "/XGReportO/ReportQTCK"; } else { this.ReportView1.ReportPath = "/XGReportC/ReportQTCK"; } break; case "1": if (Common.IsOldData) { this.ReportView1.ReportPath = "/XGReportO/ReportQTCKDJHJ"; } else { this.ReportView1.ReportPath = "/XGReportC/ReportQTCKDJHJ"; } break; case "2": if (Common.IsOldData) { this.ReportView1.ReportPath = "/XGReportO/ReportQTCKHJ"; } else { this.ReportView1.ReportPath = "/XGReportC/ReportQTCKHJ"; } break; } ReportView1.Parameters = Acctrue.WM_WES.ReportingServices.ReportView.multiState.False; ReportView1.DocMap = Acctrue.WM_WES.ReportingServices.ReportView.multiState.False; ReportView1.Toolbar = Acctrue.WM_WES.ReportingServices.ReportView.multiState.True; switch (Type) { case "0": DataSet ds = QTCKQuery.GetPrintDS("and CKDH='" + hidCKDH + "'"); if (!string.IsNullOrEmpty(hidCKDH)) { ReportView1.SetParameter("CKDH", hidCKDH); } if (ds.Tables[0].Rows[0]["CPH"] != null) { ReportView1.SetParameter("CPH", Server.UrlEncode(ds.Tables[0].Rows[0]["CPH"].ToString())); } if (ds.Tables[0].Rows[0]["SHDW"] != null) { ReportView1.SetParameter("SHDW", Server.UrlEncode(ds.Tables[0].Rows[0]["SHDW"].ToString())); } if (ds.Tables[0].Rows[0]["ZDR"] != null) { ReportView1.SetParameter("ZDR", Server.UrlEncode(ds.Tables[0].Rows[0]["ZDR"].ToString())); } if (ds.Tables[0].Rows[0]["FYSJ"] != null) { ReportView1.SetParameter("FYRQ", ds.Tables[0].Rows[0]["FYSJ"].ToString()); } if (ds.Tables[0].Rows[0]["NCDJ"] != null) { ReportView1.SetParameter("NCDJ", ds.Tables[0].Rows[0]["NCDJ"].ToString()); } if (ds.Tables[0].Rows[0]["CYS"] != null) { ReportView1.SetParameter("CYS", Server.UrlEncode(ds.Tables[0].Rows[0]["CYS"].ToString())); } if (ds.Tables[0].Rows[0]["AimAdress"] != null) { ReportView1.SetParameter("MDD", Server.UrlEncode(ds.Tables[0].Rows[0]["AimAdress"].ToString())); } if (ds.Tables[0].Rows[0]["ZDRQ"] != null) { ReportView1.SetParameter("ZDRQ", ds.Tables[0].Rows[0]["ZDRQ"].ToString()); } if (ds.Tables[0].Rows[0]["CK"] != null) { ReportView1.SetParameter("CK", ds.Tables[0].Rows[0]["CK"].ToString()); } if (ds.Tables[0].Rows[0]["CKLX"] != null) { ReportView1.SetParameter("CKLX", Server.UrlEncode(ds.Tables[0].Rows[0]["CKLX"].ToString())); } break; case "1": if (!string.IsNullOrEmpty(Request["CKDH"])) { ReportView1.SetParameter("CKDH", Request["CKDH"]); } if (!string.IsNullOrEmpty(Request["CPH"])) { ReportView1.SetParameter("CPH", Request["CPH"]); } if (!string.IsNullOrEmpty(Request["ncdj"])) { ReportView1.SetParameter("ncdj", Request["ncdj"]); } if (!string.IsNullOrEmpty(Request["CKLX"])) { ReportView1.SetParameter("CKLX", Request["CKLX"]); } if (!string.IsNullOrEmpty(Request["CYS"])) { ReportView1.SetParameter("CYS", Request["CYS"]); } if (!string.IsNullOrEmpty(Request["CK"])) { ReportView1.SetParameter("CK", Request["CK"]); } if (!string.IsNullOrEmpty(Request["status"])) { ReportView1.SetParameter("status", Request["status"]); } if (!string.IsNullOrEmpty(Request["ZDR"])) { ReportView1.SetParameter("ZDR", Request["ZDR"]); } if (!string.IsNullOrEmpty(Request["SHDW"])) { ReportView1.SetParameter("SHDW", Request["SHDW"]); } if (!string.IsNullOrEmpty(Request["ZDRQfrom"])) { ReportView1.SetParameter("ZDRQfrom", Request["ZDRQfrom"]); } if (!string.IsNullOrEmpty(Request["ZDRQto"])) { ReportView1.SetParameter("ZDRQto", Request["ZDRQto"]); } break; case "2": if (!string.IsNullOrEmpty(Request["CKDH"])) { ReportView1.SetParameter("CKDH", Request["CKDH"]); } if (!string.IsNullOrEmpty(Request["CPH"])) { ReportView1.SetParameter("CPH", Request["CPH"]); } if (!string.IsNullOrEmpty(Request["ncdj"])) { ReportView1.SetParameter("ncdj", Request["ncdj"]); } if (!string.IsNullOrEmpty(Request["CKLX"])) { ReportView1.SetParameter("CKLX", Request["CKLX"]); } if (!string.IsNullOrEmpty(Request["CYS"])) { ReportView1.SetParameter("CYS", Request["CYS"]); } if (!string.IsNullOrEmpty(Request["CK"])) { ReportView1.SetParameter("CK", Request["CK"]); } if (!string.IsNullOrEmpty(Request["status"])) { ReportView1.SetParameter("status", Request["status"]); } if (!string.IsNullOrEmpty(Request["ZDR"])) { ReportView1.SetParameter("ZDR", Request["ZDR"]); } if (!string.IsNullOrEmpty(Request["SHDW"])) { ReportView1.SetParameter("SHDW", Request["SHDW"]); } if (!string.IsNullOrEmpty(Request["ZDRQfrom"])) { ReportView1.SetParameter("ZDRQfrom", Request["ZDRQfrom"]); } if (!string.IsNullOrEmpty(Request["ZDRQto"])) { ReportView1.SetParameter("ZDRQto", Request["ZDRQto"]); } break; } }
private void SetReport() { string FYDH = ""; string CPH = ""; string CZ_User = ""; string CZ_InUser = ""; string CZ_OtUser = ""; string InOt = ""; string Status = ""; string RQStart = ""; string RQEnd = ""; string REVDATETIMEfrom = ""; string CZ_InTimefrom = ""; string CZ_OtTimefrom = ""; string REVDATETIMEto = ""; string CZ_InTimeto = ""; string CZ_OtTimeto = ""; if (!string.IsNullOrEmpty(Request["FYDH"])) { FYDH = Request["FYDH"]; } if (!string.IsNullOrEmpty(Request["CPH"])) { CPH = Request["CPH"]; } if (!string.IsNullOrEmpty(Request["CZ_User"])) { CZ_User = Request["CZ_User"]; } if (!string.IsNullOrEmpty(Request["InOt"])) { InOt = Request["InOt"]; } if (!string.IsNullOrEmpty(Request["Status"])) { Status = Request["Status"]; } if (!string.IsNullOrEmpty(Request["RQStart"])) { RQStart = Request["RQStart"]; } if (!string.IsNullOrEmpty(Request["RQEnd"])) { RQEnd = Request["RQEnd"]; } if (FYDH == "请选择") { FYDH = ""; } if (CZ_User == "请选择") { CZ_User = ""; } if (Status == "请选择") { Status = ""; } if (!string.IsNullOrEmpty(RQStart)) { RQStart = RQStart + " 00:00:00"; if ((!string.IsNullOrEmpty(Status)) && (Status != "请选择")) { switch (Status) { case "0": REVDATETIMEfrom = RQStart; break; case "1": CZ_InTimefrom = RQStart; break; case "2": REVDATETIMEfrom = RQStart; break; case "3": CZ_OtTimefrom = RQStart; break; case "4": REVDATETIMEfrom = RQStart; break; case "5": REVDATETIMEfrom = RQStart; break; } } else { REVDATETIMEfrom = RQStart; } } if (!string.IsNullOrEmpty(RQEnd)) { RQEnd = RQEnd + " 23:59:59"; if ((!string.IsNullOrEmpty(Status)) && (Status != "请选择")) { switch (Status) { case "0": REVDATETIMEto = RQEnd; break; case "1": CZ_InTimeto = RQEnd; break; case "2": REVDATETIMEto = RQEnd; break; case "3": CZ_OtTimeto = RQEnd; break; case "4": REVDATETIMEto = RQEnd; break; case "5": REVDATETIMEto = RQEnd; break; } } else { REVDATETIMEto = RQEnd; } } if ((!string.IsNullOrEmpty(CZ_User)) && (CZ_User != "请选择")) { switch (InOt) { case "进": CZ_InUser = CZ_User; break; case "出": CZ_OtUser = CZ_User; break; } } this.ReportView1.ServerUrl = this.ReportURL; if (Common.IsOldData) { this.ReportView1.ReportPath = "/XGReportO/ReportIndoorFYD"; } else { this.ReportView1.ReportPath = "/XGReportC/ReportIndoorFYD"; } ReportView1.Parameters = Acctrue.WM_WES.ReportingServices.ReportView.multiState.False; ReportView1.DocMap = Acctrue.WM_WES.ReportingServices.ReportView.multiState.False; ReportView1.Toolbar = Acctrue.WM_WES.ReportingServices.ReportView.multiState.True; ReportView1.SetParameter("FYDH", Server.UrlEncode(FYDH)); ReportView1.SetParameter("CPH", Server.UrlEncode(CPH)); ReportView1.SetParameter("CZ_InUser", Server.UrlEncode(CZ_InUser)); ReportView1.SetParameter("CZ_OtUser", Server.UrlEncode(CZ_OtUser)); ReportView1.SetParameter("Status", Server.UrlEncode(Status)); ReportView1.SetParameter("REVDATETIMEfrom", Server.UrlEncode(REVDATETIMEfrom)); ReportView1.SetParameter("CZ_InTimefrom", Server.UrlEncode(CZ_InTimefrom)); ReportView1.SetParameter("CZ_OtTimefrom", Server.UrlEncode(CZ_OtTimefrom)); ReportView1.SetParameter("REVDATETIMEto", Server.UrlEncode(REVDATETIMEto)); ReportView1.SetParameter("CZ_InTimeto", Server.UrlEncode(CZ_InTimeto)); ReportView1.SetParameter("CZ_OtTimeto", Server.UrlEncode(CZ_OtTimeto)); }
//设置报表 private void SetReport(String type) { this.ReportView1.ServerUrl = this.ReportURL; ReportView1.Parameters = Acctrue.WM_WES.ReportingServices.ReportView.multiState.False; ReportView1.DocMap = Acctrue.WM_WES.ReportingServices.ReportView.multiState.False; ReportView1.Toolbar = Acctrue.WM_WES.ReportingServices.ReportView.multiState.True; if (type == "0") { this.ReportView1.Visible = false; string strPath = Server.MapPath("Reports"); DataSet ds = KCJG.GetZCMX(Request["FYDH"]); DataSet ds2 = KCJG.GetZCMX2(Request["FYDH"]); DataSet ds3 = KCJG.GetZCMX3(Request["FYDH"]); DataSet ds4 = KCJG.GetGHXX(Request["FYDH"]); if (ds != null && ds.Tables.Count > 0 && ds.Tables[0].Rows.Count > 0 && ds2 != null && ds2.Tables.Count > 0 && ds2.Tables[0].Rows.Count > 0 && ds3 != null && ds3.Tables.Count > 0 && ds3.Tables[0].Rows.Count > 0 && ds4 != null && ds4.Tables.Count > 0 && ds4.Tables[0].Rows.Count > 0) { this.ReportViewer1.LocalReport.ReportPath = strPath + "\\FYDList.rdlc"; ReportDataSource rds = new ReportDataSource("ZCMXDataSet_WMS_Bms_Inv_OutInfo", ds.Tables[0]); ReportDataSource rds1 = new ReportDataSource("ZCMXDataSet_ghxx", ds4.Tables[0]); ReportParameter rp = new ReportParameter("FYDH", Request["FYDH"]); ReportParameter rp2 = new ReportParameter("CX", ds3.Tables[0].Rows[0]["cx"].ToString()); ReportParameter rp3 = new ReportParameter("CH", ds3.Tables[0].Rows[0]["cph"].ToString()); ReportParameter rp4 = new ReportParameter("CZY", ds2.Tables[0].Rows[0]["czy"].ToString()); ReportViewer1.LocalReport.SetParameters(new ReportParameter[] { rp }); ReportViewer1.LocalReport.SetParameters(new ReportParameter[] { rp2 }); ReportViewer1.LocalReport.SetParameters(new ReportParameter[] { rp3 }); ReportViewer1.LocalReport.SetParameters(new ReportParameter[] { rp4 }); ReportViewer1.LocalReport.DataSources.Add(rds); ReportViewer1.LocalReport.DataSources.Add(rds1); } else { this.PrintfError("无任何数据!"); } } if (type == "1") { if (Common.IsOldData) { this.ReportView1.ReportPath = "/XGReportO/FYDRList"; } else { this.ReportView1.ReportPath = "/XGReportC/FYDRList"; } if (!string.IsNullOrEmpty(Request["FYDH"])) { ReportView1.SetParameter("FYDH", Request["FYDH"]); } if (!string.IsNullOrEmpty(Request["CK"])) { ReportView1.SetParameter("CK", Request["CK"]); } if (!string.IsNullOrEmpty(Request["KHH"])) { ReportView1.SetParameter("KHBM", Request["KHH"]); } if (!string.IsNullOrEmpty(Request["CPH"])) { ReportView1.SetParameter("CPH", Server.UrlEncode(Request["CPH"])); } if (!string.IsNullOrEmpty(Request["WLH"])) { ReportView1.SetParameter("WLH", Request["WLH"]); } if (!string.IsNullOrEmpty(Request["SX"])) { ReportView1.SetParameter("SX", Server.UrlEncode(Request["SX"])); } if (!string.IsNullOrEmpty(Request["TSXX"])) { ReportView1.SetParameter("pcinfo", Server.UrlEncode(Request["TSXX"])); } if (!string.IsNullOrEmpty(Request["PC"])) { ReportView1.SetParameter("PCH", Request["PC"]); } if (!string.IsNullOrEmpty(Request["PH"])) { ReportView1.SetParameter("PH", Request["PH"]); } if (!string.IsNullOrEmpty(Request["JMKH"])) { ReportView1.SetParameter("INDOORID", Request["JMKH"]); } if (!string.IsNullOrEmpty(Request["CMKH"])) { ReportView1.SetParameter("OUTDOORID", Request["CMKH"]); } if (!string.IsNullOrEmpty(Request["MIGG"])) { ReportView1.SetParameter("MIGG", Server.UrlEncode(Request["MIGG"])); } if (!string.IsNullOrEmpty(Request["MAGG"])) { ReportView1.SetParameter("MAGG", Server.UrlEncode(Request["MAGG"])); } if (!string.IsNullOrEmpty(Request["GG"])) { ReportView1.SetParameter("GG", Server.UrlEncode(Request["GG"])); } if (!string.IsNullOrEmpty(Request["YSLB"])) { ReportView1.SetParameter("YSLB", Request["YSLB"]); } if (!string.IsNullOrEmpty(Request["ZDR"])) { ReportView1.SetParameter("NCZDRY", Server.UrlEncode(Request["ZDR"])); } if (!string.IsNullOrEmpty(Request["BM"])) { ReportView1.SetParameter("NCBM", Request["BM"]); } if (!string.IsNullOrEmpty(Request["BM"])) { ReportView1.SetParameter("NCBM", Request["BM"]); } if (!string.IsNullOrEmpty(Request["STATUS"])) { ReportView1.SetParameter("STATUS", Request["STATUS"]); } if (!string.IsNullOrEmpty(Request["CSTATUS"])) { ReportView1.SetParameter("CSTATUS", Request["CSTATUS"]); } if (!string.IsNullOrEmpty(Request["ADD"])) { ReportView1.SetParameter("AimAdress", Server.UrlEncode(Request["ADD"])); } if (!string.IsNullOrEmpty(Request["SNCZDRQ"])) { ReportView1.SetParameter("SNCZDRQ", Request["SNCZDRQ"]); } if (!string.IsNullOrEmpty(Request["ENCZDRQ"])) { ReportView1.SetParameter("ENCZDRQ", Request["ENCZDRQ"]); } if (!string.IsNullOrEmpty(Request["SCKRQ"])) { ReportView1.SetParameter("SCKRQ", Request["SCKRQ"]); } if (!string.IsNullOrEmpty(Request["ECKRQ"])) { ReportView1.SetParameter("ECKRQ", Request["ECKRQ"]); } if (!string.IsNullOrEmpty(Request["SCZ_OTTime"])) { ReportView1.SetParameter("SCZ_OTTime", Request["SCZ_OTTime"]); } if (!string.IsNullOrEmpty(Request["ECZ_OTTime"])) { ReportView1.SetParameter("ECZ_OTTime", Request["ECZ_OTTime"]); } if (!string.IsNullOrEmpty(Request["SCZ_INTime"])) { ReportView1.SetParameter("SCZ_INTime", Request["SCZ_INTime"]); } if (!string.IsNullOrEmpty(Request["ECZ_INTime"])) { ReportView1.SetParameter("ECZ_INTime", Request["ECZ_INTime"]); } if (!string.IsNullOrEmpty(Request["sjsl"])) { ReportView1.SetParameter("sjsl", Request["sjsl"]); } } if (type == "2") { this.ReportView1.Visible = false; string strPath = Server.MapPath("Reports"); DataSet ds = KCJG.GetDJMX(Request["FYDH"]); DataSet ds2 = KCJG.GetZCMX2(Request["FYDH"]); DataSet ds3 = KCJG.GetZCMX3(Request["FYDH"]); if (ds != null && ds.Tables.Count > 0 && ds.Tables[0].Rows.Count > 0 && ds2 != null && ds2.Tables.Count > 0 && ds2.Tables[0].Rows.Count > 0 && ds3 != null && ds3.Tables.Count > 0 && ds3.Tables[0].Rows.Count > 0) { this.ReportViewer1.LocalReport.ReportPath = strPath + "\\FYDDetails.rdlc"; ReportDataSource rds = new ReportDataSource("ZCMXDataSet_WMS_Bms_Inv_OutInfo", ds.Tables[0]); ReportParameter rp = new ReportParameter("FYDH", Request["FYDH"]); ReportParameter rp2 = new ReportParameter("CX", ds3.Tables[0].Rows[0]["cx"].ToString()); ReportParameter rp3 = new ReportParameter("CH", ds3.Tables[0].Rows[0]["cph"].ToString()); ReportViewer1.LocalReport.SetParameters(new ReportParameter[] { rp }); ReportViewer1.LocalReport.SetParameters(new ReportParameter[] { rp2 }); ReportViewer1.LocalReport.SetParameters(new ReportParameter[] { rp3 }); ReportViewer1.LocalReport.DataSources.Add(rds); } else { this.PrintfError("无任何数据!"); } } if (type == "3") { this.ReportView1.Visible = false; string strPath = Server.MapPath("Reports"); DataSet ds = KCJG.GetZCMX(Request["FYDH"]); DataSet ds1 = KCJG.GetZCMX1(Request["FYDH"]); DataSet ds2 = KCJG.GetZCMX2(Request["FYDH"]); DataSet ds3 = KCJG.GetZCMX3(Request["FYDH"]); if (ds != null && ds.Tables.Count > 0 && ds.Tables[0].Rows.Count > 0 && ds1 != null && ds1.Tables.Count > 0 && ds1.Tables[0].Rows.Count > 0 && ds2 != null && ds2.Tables.Count > 0 && ds2.Tables[0].Rows.Count > 0 && ds3 != null && ds3.Tables.Count > 0 && ds3.Tables[0].Rows.Count > 0) { this.ReportViewer1.LocalReport.ReportPath = strPath + "\\ZCMXReport.rdlc"; ReportDataSource rds = new ReportDataSource("ZCMXDataSet_WMS_Bms_Inv_OutInfo", ds.Tables[0]); ReportDataSource rds1 = new ReportDataSource("ZCMXDataSet_v_fyd_details", ds1.Tables[0]); ReportDataSource rds2 = new ReportDataSource("ZCMXDataSet_bwxx", ds2.Tables[0]); ReportDataSource rds3 = new ReportDataSource("ZCMXDataSet_byxx", ds3.Tables[0]); ReportParameter rp = new ReportParameter("fydh", Request["FYDH"]); ReportParameter rp1 = new ReportParameter("khname", ds3.Tables[0].Rows[0]["khname"].ToString()); ReportParameter rp2 = new ReportParameter("cx", ds3.Tables[0].Rows[0]["cx"].ToString()); ReportParameter rp3 = new ReportParameter("ch", ds3.Tables[0].Rows[0]["cph"].ToString()); ReportParameter rp4 = new ReportParameter("czy", ds2.Tables[0].Rows[0]["czy"].ToString()); ReportViewer1.LocalReport.SetParameters(new ReportParameter[] { rp }); ReportViewer1.LocalReport.SetParameters(new ReportParameter[] { rp1 }); ReportViewer1.LocalReport.SetParameters(new ReportParameter[] { rp2 }); ReportViewer1.LocalReport.SetParameters(new ReportParameter[] { rp3 }); ReportViewer1.LocalReport.SetParameters(new ReportParameter[] { rp4 }); ReportViewer1.LocalReport.DataSources.Add(rds1); ReportViewer1.LocalReport.DataSources.Add(rds); ReportViewer1.LocalReport.DataSources.Add(rds2); ReportViewer1.LocalReport.DataSources.Add(rds3); } else { this.PrintfError("无任何数据!"); } } if (!string.IsNullOrEmpty(Request["ISWGDH"])) { ReportView1.SetParameter("ISWGDH", "true"); } }
//设置报表 private void SetReport() { string type = Request["TYPE"]; this.ReportView1.ServerUrl = this.ReportURL; switch (type) { case "0": if (Common.IsOldData) { this.ReportView1.ReportPath = "/XGReportO/ReportKC_PCH"; } else { this.ReportView1.ReportPath = "/XGReportC/ReportKC_PCH"; } break; case "1": if (Common.IsOldData) { this.ReportView1.ReportPath = "/XGReportO/ReportKC_HW"; } else { this.ReportView1.ReportPath = "/XGReportC/ReportKC_HW"; } break; case "2": if (Common.IsOldData) { this.ReportView1.ReportPath = "/XGReportO/ReportKC_Barcode"; } else { this.ReportView1.ReportPath = "/XGReportC/ReportKC_Barcode"; } break; case "3": if (Common.IsOldData) { this.ReportView1.ReportPath = "/XGReportO/ReportKC_WLH"; } else { this.ReportView1.ReportPath = "/XGReportC/ReportKC_WLH"; } break; } ReportView1.Parameters = Acctrue.WM_WES.ReportingServices.ReportView.multiState.False; ReportView1.DocMap = Acctrue.WM_WES.ReportingServices.ReportView.multiState.False; ReportView1.Toolbar = Acctrue.WM_WES.ReportingServices.ReportView.multiState.True; switch (type) { case "0": if (!string.IsNullOrEmpty(Request["ISPCH"])) { ReportView1.SetParameter("ISPCH", "true"); } if (!string.IsNullOrEmpty(Request["ISCK"])) { ReportView1.SetParameter("ISCK", "true"); } if (!string.IsNullOrEmpty(Request["ISSX"])) { ReportView1.SetParameter("ISSX", "true"); } if (!string.IsNullOrEmpty(Request["ISPH"])) { ReportView1.SetParameter("ISPH", "true"); } if (!string.IsNullOrEmpty(Request["ISGG"])) { ReportView1.SetParameter("ISGG", "true"); } if (!string.IsNullOrEmpty(Request["ISWLH"])) { ReportView1.SetParameter("ISWLH", "true"); } if (!string.IsNullOrEmpty(Request["ISSL"])) { ReportView1.SetParameter("ISSL", "true"); } if (!string.IsNullOrEmpty(Request["ISSUMZL"])) { ReportView1.SetParameter("ISSUMZL", "true"); } if (!string.IsNullOrEmpty(Request["ISRKRQ"])) { ReportView1.SetParameter("ISRKRQ", "true"); } if (!string.IsNullOrEmpty(Request["ISWLMC"])) { ReportView1.SetParameter("ISWLMC", "true"); } if (!string.IsNullOrEmpty(Request["ISFREE1"])) { ReportView1.SetParameter("ISFREE1", "true"); } if (!string.IsNullOrEmpty(Request["ISFREE2"])) { ReportView1.SetParameter("ISFREE2", "true"); } if (!string.IsNullOrEmpty(Request["ISFREE3"])) { ReportView1.SetParameter("ISFREE3", "true"); } break; case "1": if (!string.IsNullOrEmpty(Request["ISHW"])) { ReportView1.SetParameter("ISHW", "true"); } if (!string.IsNullOrEmpty(Request["ISCK"])) { ReportView1.SetParameter("ISCK", "true"); } if (!string.IsNullOrEmpty(Request["ISPCH"])) { ReportView1.SetParameter("ISPCH", "true"); } if (!string.IsNullOrEmpty(Request["ISSX"])) { ReportView1.SetParameter("ISSX", "true"); } if (!string.IsNullOrEmpty(Request["ISWLH"])) { ReportView1.SetParameter("ISWLH", "true"); } if (!string.IsNullOrEmpty(Request["ISPH"])) { ReportView1.SetParameter("ISPH", "true"); } if (!string.IsNullOrEmpty(Request["ISGG"])) { ReportView1.SetParameter("ISGG", "true"); } if (!string.IsNullOrEmpty(Request["ISSL"])) { ReportView1.SetParameter("ISSL", "true"); } if (!string.IsNullOrEmpty(Request["ISSUMZL"])) { ReportView1.SetParameter("ISSUMZL", "true"); } if (!string.IsNullOrEmpty(Request["ISRKRQ"])) { ReportView1.SetParameter("ISRKRQ", "true"); } if (!string.IsNullOrEmpty(Request["ISWLMC"])) { ReportView1.SetParameter("ISWLMC", "true"); } if (!string.IsNullOrEmpty(Request["ISFREE1"])) { ReportView1.SetParameter("ISFREE1", "true"); } if (!string.IsNullOrEmpty(Request["ISFREE2"])) { ReportView1.SetParameter("ISFREE2", "true"); } if (!string.IsNullOrEmpty(Request["ISFREE3"])) { ReportView1.SetParameter("ISFREE3", "true"); } break; case "2": if (!string.IsNullOrEmpty(Request["ISBarcode"])) { ReportView1.SetParameter("ISBarcode", "true"); } if (!string.IsNullOrEmpty(Request["ISHW"])) { ReportView1.SetParameter("ISHW", "true"); } if (!string.IsNullOrEmpty(Request["ISPCH"])) { ReportView1.SetParameter("ISPCH", "true"); } if (!string.IsNullOrEmpty(Request["ISWLH"])) { ReportView1.SetParameter("ISWLH", "true"); } if (!string.IsNullOrEmpty(Request["ISSX"])) { ReportView1.SetParameter("ISSX", "true"); } if (!string.IsNullOrEmpty(Request["ISErrSeason"])) { ReportView1.SetParameter("ISErrSeason", "true"); } if (!string.IsNullOrEmpty(Request["ISPH"])) { ReportView1.SetParameter("ISPH", "true"); } if (!string.IsNullOrEmpty(Request["ISGG"])) { ReportView1.SetParameter("ISGG", "true"); } if (!string.IsNullOrEmpty(Request["ISZL"])) { ReportView1.SetParameter("ISZL", "true"); } if (!string.IsNullOrEmpty(Request["ISBZ"])) { ReportView1.SetParameter("ISBZ", "true"); } if (!string.IsNullOrEmpty(Request["ISRQ"])) { ReportView1.SetParameter("ISRQ", "true"); } if (!string.IsNullOrEmpty(Request["ISWGDH"])) { ReportView1.SetParameter("ISWGDH", "true"); } if (!string.IsNullOrEmpty(Request["ISGH"])) { ReportView1.SetParameter("ISGH", "true"); } if (!string.IsNullOrEmpty(Request["ISBB"])) { ReportView1.SetParameter("ISBB", "true"); } if (!string.IsNullOrEmpty(Request["ISRKType"])) { ReportView1.SetParameter("ISRKType", "true"); } if (!string.IsNullOrEmpty(Request["ISRKRY"])) { ReportView1.SetParameter("ISRKRY", "true"); } if (!string.IsNullOrEmpty(Request["ISpcinfo"])) { ReportView1.SetParameter("ISpcinfo", "true"); } if (!string.IsNullOrEmpty(Request["ISFREE1"])) { ReportView1.SetParameter("ISFREE1", "true"); } if (!string.IsNullOrEmpty(Request["ISFREE2"])) { ReportView1.SetParameter("ISFREE2", "true"); } if (!string.IsNullOrEmpty(Request["ISFREE3"])) { ReportView1.SetParameter("ISFREE3", "true"); } break; case "3": if (!string.IsNullOrEmpty(Request["ISCK"])) { ReportView1.SetParameter("ISCK", "true"); } if (!string.IsNullOrEmpty(Request["ISWLH"])) { ReportView1.SetParameter("ISWLH", "true"); } if (!string.IsNullOrEmpty(Request["ISWLMC"])) { ReportView1.SetParameter("ISWLMC", "true"); } if (!string.IsNullOrEmpty(Request["ISHW"])) { ReportView1.SetParameter("ISHW", "true"); } if (!string.IsNullOrEmpty(Request["ISPCH"])) { ReportView1.SetParameter("ISPCH", "true"); } if (!string.IsNullOrEmpty(Request["ISSX"])) { ReportView1.SetParameter("ISSX", "true"); } if (!string.IsNullOrEmpty(Request["ISPH"])) { ReportView1.SetParameter("ISPH", "true"); } if (!string.IsNullOrEmpty(Request["ISGG"])) { ReportView1.SetParameter("ISGG", "true"); } if (!string.IsNullOrEmpty(Request["ISSL"])) { ReportView1.SetParameter("ISSL", "true"); } if (!string.IsNullOrEmpty(Request["ISSUMZL"])) { ReportView1.SetParameter("ISSUMZL", "true"); } if (!string.IsNullOrEmpty(Request["ISRKRQ"])) { ReportView1.SetParameter("ISRKRQ", "true"); } if (!string.IsNullOrEmpty(Request["ISFREE1"])) { ReportView1.SetParameter("ISFREE1", "true"); } if (!string.IsNullOrEmpty(Request["ISFREE2"])) { ReportView1.SetParameter("ISFREE2", "true"); } if (!string.IsNullOrEmpty(Request["ISFREE3"])) { ReportView1.SetParameter("ISFREE3", "true"); } break; } if (!string.IsNullOrEmpty(Request["CK"])) { ReportView1.SetParameter("CK", Request["CK"]); } if (!string.IsNullOrEmpty(Request["PCH"])) { ReportView1.SetParameter("PCH", Request["PCH"]); } if (!string.IsNullOrEmpty(Request["SX"])) { ReportView1.SetParameter("SX", Request["SX"]); } if (!string.IsNullOrEmpty(Request["WLH"])) { ReportView1.SetParameter("WLH", Request["WLH"]); } if (!string.IsNullOrEmpty(Request["FREE1"])) { ReportView1.SetParameter("FREE1", Server.UrlEncode(Request["FREE1"])); } if (!string.IsNullOrEmpty(Request["FREE2"])) { ReportView1.SetParameter("FREE2", Server.UrlEncode(Request["FREE2"])); } if (!string.IsNullOrEmpty(Request["FREE3"])) { ReportView1.SetParameter("FREE3", Server.UrlEncode(Request["FREE3"])); } if (!string.IsNullOrEmpty(Request["HW"])) { ReportView1.SetParameter("HW", Request["HW"]); } if (!string.IsNullOrEmpty(Request["pcinfo"])) { ReportView1.SetParameter("pcinfo", Request["pcinfo"]); } if (!string.IsNullOrEmpty(Request["PHMH"])) { ReportView1.SetParameter("PHMH", Request["PHMH"]); } if (!string.IsNullOrEmpty(Request["PH"])) { ReportView1.SetParameter("PH", Request["PH"]); } if (!string.IsNullOrEmpty(Request["Barcode"])) { ReportView1.SetParameter("Barcode", Request["Barcode"]); } if (!string.IsNullOrEmpty(Request["RQfrom"])) { ReportView1.SetParameter("RQfrom", Request["RQfrom"]); } if (!string.IsNullOrEmpty(Request["RQto"])) { ReportView1.SetParameter("RQto", Request["RQto"]); } if (!string.IsNullOrEmpty(Request["WRQfrom"])) { ReportView1.SetParameter("WRQfrom", Request["WRQfrom"]); } if (!string.IsNullOrEmpty(Request["WRQto"])) { ReportView1.SetParameter("WRQto", Request["WRQto"]); } if (!string.IsNullOrEmpty(Request["GG"])) { ReportView1.SetParameter("GG", Request["GG"]); } if (!string.IsNullOrEmpty(Request["GGcopy"])) { ReportView1.SetParameter("GGcopy", Request["GGcopy"]); } }
//设置报表 private void SetReport() { this.ReportView1.ServerUrl = this.ReportURL; if (Common.IsOldData) { this.ReportView1.ReportPath = "/XGReportO/ReportYYL"; } else { this.ReportView1.ReportPath = "/XGReportC/ReportYYL"; } ReportView1.Parameters = Acctrue.WM_WES.ReportingServices.ReportView.multiState.False; ReportView1.DocMap = Acctrue.WM_WES.ReportingServices.ReportView.multiState.False; ReportView1.Toolbar = Acctrue.WM_WES.ReportingServices.ReportView.multiState.True; if (!this.chkConfigCK.Checked) { ReportView1.SetParameter("ISCK", "true"); } if (!this.chkConfigPH.Checked) { ReportView1.SetParameter("ISPH", "true"); } if (!this.chkConfigGG.Checked) { ReportView1.SetParameter("ISGG", "true"); } if (!this.chkConfigSX.Checked) { ReportView1.SetParameter("ISSX", "true"); } if (!this.chkConfigWLH.Checked) { ReportView1.SetParameter("ISWLH", "true"); } if (!this.chkConfigKCSL.Checked) { ReportView1.SetParameter("ISKCSL", "true"); } if (!this.chkConfigKCZL.Checked) { ReportView1.SetParameter("ISKCZL", "true"); } if (!this.chkConfigYYSL.Checked) { ReportView1.SetParameter("ISYYSL", "true"); } if (!this.chkConfigYYZL.Checked) { ReportView1.SetParameter("ISYYZL", "true"); } if (!this.chkConfigZXSL.Checked) { ReportView1.SetParameter("ISZXSL", "true"); } if (!this.chkConfigZXZL.Checked) { ReportView1.SetParameter("ISZXZL", "true"); } if (!this.chkConfigZKYYSL.Checked) { ReportView1.SetParameter("ISZKYYSL", "true"); } if (!this.chkConfigZKYYZL.Checked) { ReportView1.SetParameter("ISZKYYZL", "true"); } if (!this.chkConfigZKZXSL.Checked) { ReportView1.SetParameter("ISZKZXSL", "true"); } if (!this.chkConfigZKZXZL.Checked) { ReportView1.SetParameter("ISZKZXZL", "true"); } if (!this.chkConfigKYSL.Checked) { ReportView1.SetParameter("ISKYSL", "true"); } if (!this.chkConfigKYZL.Checked) { ReportView1.SetParameter("ISKYZL", "true"); } if (this.chkCK.Checked && !string.IsNullOrEmpty(this.hidCK.Value)) { ReportView1.SetParameter("CK", this.hidCK.Value.Trim()); } if (this.chkPH.Checked && !string.IsNullOrEmpty(this.drpPH.Text)) { ReportView1.SetParameter("PH", this.drpPH.Text.Trim()); } if (this.chkSX.Checked && !string.IsNullOrEmpty(this.hidSX.Value)) { ReportView1.SetParameter("SX", this.hidSX.Value.Trim()); } if (this.chkGG.Checked) { if (!string.IsNullOrEmpty(this.hidGG.Value) && !string.IsNullOrEmpty(this.hidCopyGG.Value)) { ReportView1.SetParameter("GG", this.hidGG.Value.Trim()); ReportView1.SetParameter("GGend", this.hidCopyGG.Value.Trim()); } if (!string.IsNullOrEmpty(this.hidGG.Value) && string.IsNullOrEmpty(this.hidCopyGG.Value)) { ReportView1.SetParameter("GG", this.hidGG.Value.Trim()); ReportView1.SetParameter("GGend", this.hidGG.Value.Trim()); } if (string.IsNullOrEmpty(this.hidGG.Value) && !string.IsNullOrEmpty(this.hidCopyGG.Value)) { ReportView1.SetParameter("GG", this.hidCopyGG.Value.Trim()); ReportView1.SetParameter("GGend", this.hidCopyGG.Value.Trim()); } } }
//设置报表 private void SetReport() { this.ReportView1.ServerUrl = this.ReportURL; if (Common.IsOldData) { this.ReportView1.ReportPath = "/XGReportO/ReportYWD"; } else { this.ReportView1.ReportPath = "/XGReportC/ReportYWD"; } ReportView1.Parameters = Acctrue.WM_WES.ReportingServices.ReportView.multiState.False; ReportView1.DocMap = Acctrue.WM_WES.ReportingServices.ReportView.multiState.False; ReportView1.Toolbar = Acctrue.WM_WES.ReportingServices.ReportView.multiState.True; if (!string.IsNullOrEmpty(Request["ISYWDH"])) { ReportView1.SetParameter("ISYWDH", "true"); } if (!string.IsNullOrEmpty(Request["ISCK"])) { ReportView1.SetParameter("ISCK", "true"); } if (!string.IsNullOrEmpty(Request["ISSHW"])) { ReportView1.SetParameter("ISSHW", "true"); } if (!string.IsNullOrEmpty(Request["ISTHW"])) { ReportView1.SetParameter("ISTHW", "true"); } if (!string.IsNullOrEmpty(Request["ISBarcode"])) { ReportView1.SetParameter("ISBarcode", "true"); } if (!string.IsNullOrEmpty(Request["ISPCH"])) { ReportView1.SetParameter("ISPCH", "true"); } if (!string.IsNullOrEmpty(Request["ISWLH"])) { ReportView1.SetParameter("ISWLH", "true"); } if (!string.IsNullOrEmpty(Request["ISSX"])) { ReportView1.SetParameter("ISSX", "true"); } if (!string.IsNullOrEmpty(Request["ISPH"])) { ReportView1.SetParameter("ISPH", "true"); } if (!string.IsNullOrEmpty(Request["ISGG"])) { ReportView1.SetParameter("ISGG", "true"); } if (!string.IsNullOrEmpty(Request["ISZL"])) { ReportView1.SetParameter("ISZL", "true"); } if (!string.IsNullOrEmpty(Request["ISCZRY"])) { ReportView1.SetParameter("ISCZRY", "true"); } if (!string.IsNullOrEmpty(Request["ISCZRQ"])) { ReportView1.SetParameter("ISCZRQ", "true"); } if (!string.IsNullOrEmpty(Request["YWDH"])) { ReportView1.SetParameter("YWDH", Request["YWDH"]); } if (!string.IsNullOrEmpty(Request["CK"])) { ReportView1.SetParameter("CK", Request["CK"]); } if (!string.IsNullOrEmpty(Request["SHW"])) { ReportView1.SetParameter("SHW", Request["SHW"]); } if (!string.IsNullOrEmpty(Request["THW"])) { ReportView1.SetParameter("THW", Request["THW"]); } if (!string.IsNullOrEmpty(Request["Barcode"])) { ReportView1.SetParameter("Barcode", Request["Barcode"]); } if (!string.IsNullOrEmpty(Request["PCH"])) { ReportView1.SetParameter("PCH", Request["PCH"]); } if (!string.IsNullOrEmpty(Request["WLH"])) { ReportView1.SetParameter("WLH", Request["WLH"]); } if (!string.IsNullOrEmpty(Request["SX"])) { ReportView1.SetParameter("SX", Request["SX"]); } if (!string.IsNullOrEmpty(Request["PH"])) { ReportView1.SetParameter("PH", Request["PH"]); } if (!string.IsNullOrEmpty(Request["GG"])) { ReportView1.SetParameter("GG", Request["GG"]); } if (!string.IsNullOrEmpty(Request["CZRY"])) { ReportView1.SetParameter("CZRY", Request["CZRY"]); } if (!string.IsNullOrEmpty(Request["CZRQfrom"])) { ReportView1.SetParameter("CZRQfrom", Request["CZRQfrom"]); } if (!string.IsNullOrEmpty(Request["CZRQto"])) { ReportView1.SetParameter("CZRQto", Request["CZRQto"]); } }
//设置报表 private void SetReport() { this.ReportView1.ServerUrl = this.ReportURL; if (Common.IsOldData) { this.ReportView1.ReportPath = "/XGReportO/WGDReport"; } else { this.ReportView1.ReportPath = "/XGReportC/WGDReport"; } ReportView1.Parameters = Acctrue.WM_WES.ReportingServices.ReportView.multiState.False; ReportView1.DocMap = Acctrue.WM_WES.ReportingServices.ReportView.multiState.False; ReportView1.Toolbar = Acctrue.WM_WES.ReportingServices.ReportView.multiState.True; if (!string.IsNullOrEmpty(Request["ISWGDH"])) { ReportView1.SetParameter("ISWGDH", "true"); } if (!string.IsNullOrEmpty(Request["ISSCX"])) { ReportView1.SetParameter("ISSCX", "true"); } if (!string.IsNullOrEmpty(Request["ISPC"])) { ReportView1.SetParameter("ISPC", "true"); } if (!string.IsNullOrEmpty(Request["ISPCSX"])) { ReportView1.SetParameter("ISPCSX", "true"); } if (!string.IsNullOrEmpty(Request["ISTSXX"])) { ReportView1.SetParameter("ISTSXX", "true"); } if (!string.IsNullOrEmpty(Request["ISPCLX"])) { ReportView1.SetParameter("ISPCLX", "true"); } if (!string.IsNullOrEmpty(Request["ISPH"])) { ReportView1.SetParameter("ISPH", "true"); } if (!string.IsNullOrEmpty(Request["ISGG"])) { ReportView1.SetParameter("ISGG", "true"); } if (!string.IsNullOrEmpty(Request["ISWLH"])) { ReportView1.SetParameter("ISWLH", "true"); } if (!string.IsNullOrEmpty(Request["ISWLMC"])) { ReportView1.SetParameter("ISWLMC", "true"); } if (!string.IsNullOrEmpty(Request["ISZXBZ"])) { ReportView1.SetParameter("ISZXBZ", "true"); } if (!string.IsNullOrEmpty(Request["ISFZDW"])) { ReportView1.SetParameter("ISFZDW", "true"); } if (!string.IsNullOrEmpty(Request["ISPCXH"])) { ReportView1.SetParameter("ISPCXH", "true"); } if (!string.IsNullOrEmpty(Request["ISZJBZ"])) { ReportView1.SetParameter("ISZJBZ", "true"); } if (!string.IsNullOrEmpty(Request["ISPGSM"])) { ReportView1.SetParameter("ISPGSM", "true"); } if (!string.IsNullOrEmpty(Request["ISJSSJ"])) { ReportView1.SetParameter("ISJSSJ", "true"); } if (!string.IsNullOrEmpty(Request["ISSCWC"])) { ReportView1.SetParameter("ISSCWSJ", "true"); } if (!string.IsNullOrEmpty(Request["ISRKWC"])) { ReportView1.SetParameter("ISRKSJ", "true"); } if (!string.IsNullOrEmpty(Request["ISDJZT"])) { ReportView1.SetParameter("ISDJZT", "true"); } if (!string.IsNullOrEmpty(Request["ISBB"])) { ReportView1.SetParameter("ISBB", "true"); } if (!string.IsNullOrEmpty(Request["WGDH"])) { ReportView1.SetParameter("WGDH", Request["WGDH"]); } if (!string.IsNullOrEmpty(Request["PCH"])) { ReportView1.SetParameter("PCH", Request["PCH"]); } if (!string.IsNullOrEmpty(Request["ZJR"])) { ReportView1.SetParameter("ZJR", Request["ZJR"]); } if (!string.IsNullOrEmpty(Request["TSXX"])) { ReportView1.SetParameter("PCINFO", Request["TSXX"]); } if (!string.IsNullOrEmpty(Request["PCLX"])) { ReportView1.SetParameter("PCLX", Request["PCLX"]); } if (!string.IsNullOrEmpty(Request["PCSX"])) { ReportView1.SetParameter("PCSX", Request["PCSX"]); } if (!string.IsNullOrEmpty(Request["WLH"])) { ReportView1.SetParameter("WLH", Request["WLH"]); } if (!string.IsNullOrEmpty(Request["SCX"])) { ReportView1.SetParameter("SCX", Request["SCX"]); } if (!string.IsNullOrEmpty(Request["WCBZ"])) { ReportView1.SetParameter("WCBZ", Request["WCBZ"]); } if (!string.IsNullOrEmpty(Request["PH"])) { ReportView1.SetParameter("PH", Request["PH"]); } if (!string.IsNullOrEmpty(Request["DP"])) { ReportView1.SetParameter("DPP", Request["DP"]); } if (!string.IsNullOrEmpty(Request["GG"])) { ReportView1.SetParameter("GG", Request["GG"]); } if (!string.IsNullOrEmpty(Request["SCKS"])) { ReportView1.SetParameter("PSTIME", Request["SCKS"]); } if (!string.IsNullOrEmpty(Request["SCJS"])) { ReportView1.SetParameter("PETIME", Request["SCJS"]); } if (!string.IsNullOrEmpty(Request["RKWC"])) { ReportView1.SetParameter("STIME", Request["RKWC"]); } if (!string.IsNullOrEmpty(Request["RKJS"])) { ReportView1.SetParameter("ETIME", Request["RKJS"]); } if (!string.IsNullOrEmpty(Request["PGBZ"])) { ReportView1.SetParameter("PGBZ", "0"); } }
//设置报表 private void SetReport() { this.ReportView1.ServerUrl = this.ReportURL; if (Common.IsOldData) { this.ReportView1.ReportPath = "/XGReportO/ReportZKD"; } else { this.ReportView1.ReportPath = "/XGReportC/ReportZKD"; } ReportView1.Parameters = Acctrue.WM_WES.ReportingServices.ReportView.multiState.False; ReportView1.DocMap = Acctrue.WM_WES.ReportingServices.ReportView.multiState.False; ReportView1.Toolbar = Acctrue.WM_WES.ReportingServices.ReportView.multiState.True; if (!string.IsNullOrEmpty(Request["ISZKDH"])) { ReportView1.SetParameter("ISZKDH", "true"); } if (!string.IsNullOrEmpty(Request["ISCPH"])) { ReportView1.SetParameter("ISCPH", "true"); } if (!string.IsNullOrEmpty(Request["ISPCH"])) { ReportView1.SetParameter("ISPCH", "true"); } if (!string.IsNullOrEmpty(Request["ISWLH"])) { ReportView1.SetParameter("ISWLH", "true"); } if (!string.IsNullOrEmpty(Request["ISSX"])) { ReportView1.SetParameter("ISSX", "true"); } if (!string.IsNullOrEmpty(Request["ISYCK"])) { ReportView1.SetParameter("ISYCK", "true"); } if (!string.IsNullOrEmpty(Request["ISYHW"])) { ReportView1.SetParameter("ISYHW", "true"); } if (!string.IsNullOrEmpty(Request["ISMBCK"])) { ReportView1.SetParameter("ISMBCK", "true"); } if (!string.IsNullOrEmpty(Request["ISMBHW"])) { ReportView1.SetParameter("ISMBHW", "true"); } if (!string.IsNullOrEmpty(Request["ISFJLDW"])) { ReportView1.SetParameter("ISFJLDW", "true"); } if (!string.IsNullOrEmpty(Request["ISZJLDW"])) { ReportView1.SetParameter("ISZJLDW", "true"); } if (!string.IsNullOrEmpty(Request["ISJHSL"])) { ReportView1.SetParameter("ISJHSL", "true"); } if (!string.IsNullOrEmpty(Request["ISJHZL"])) { ReportView1.SetParameter("ISJHZL", "true"); } if (!string.IsNullOrEmpty(Request["ISOutNum"])) { ReportView1.SetParameter("ISOutNum", "true"); } if (!string.IsNullOrEmpty(Request["ISOutZL"])) { ReportView1.SetParameter("ISOutZL", "true"); } if (!string.IsNullOrEmpty(Request["ISInNum"])) { ReportView1.SetParameter("ISInNum", "true"); } if (!string.IsNullOrEmpty(Request["ISInZL"])) { ReportView1.SetParameter("ISInZL", "true"); } if (!string.IsNullOrEmpty(Request["ISSL"])) { ReportView1.SetParameter("ISSL", "true"); } if (!string.IsNullOrEmpty(Request["ISZL"])) { ReportView1.SetParameter("ISZL", "true"); } if (!string.IsNullOrEmpty(Request["ISzhxlb"])) { ReportView1.SetParameter("ISzhxlb", "true"); } if (!string.IsNullOrEmpty(Request["ISoutstatus"])) { ReportView1.SetParameter("ISoutstatus", "true"); } if (!string.IsNullOrEmpty(Request["ISCKOperator"])) { ReportView1.SetParameter("ISCKOperator", "true"); } if (!string.IsNullOrEmpty(Request["ISCKTime"])) { ReportView1.SetParameter("ISCKTime", "true"); } if (!string.IsNullOrEmpty(Request["ISstatus"])) { ReportView1.SetParameter("ISstatus", "true"); } if (!string.IsNullOrEmpty(Request["ISRKOperator"])) { ReportView1.SetParameter("ISRKOperator", "true"); } if (!string.IsNullOrEmpty(Request["ISRKTime"])) { ReportView1.SetParameter("ISRKTime", "true"); } if (!string.IsNullOrEmpty(Request["ISWLMC"])) { ReportView1.SetParameter("ISWLMC", "true"); } if (!string.IsNullOrEmpty(Request["ZKDH"])) { ReportView1.SetParameter("ZKDH", Request["ZKDH"]); } if (!string.IsNullOrEmpty(Request["PCH"])) { ReportView1.SetParameter("PCH", Request["PCH"]); } if (!string.IsNullOrEmpty(Request["WLH"])) { ReportView1.SetParameter("WLH", Request["WLH"]); } if (!string.IsNullOrEmpty(Request["SX"])) { ReportView1.SetParameter("SX", Request["SX"]); } if (!string.IsNullOrEmpty(Request["PH"])) { ReportView1.SetParameter("PH", Request["PH"]); } if (!string.IsNullOrEmpty(Request["GG"])) { ReportView1.SetParameter("GG", Request["GG"]); } if (!string.IsNullOrEmpty(Request["SCK"])) { ReportView1.SetParameter("SCK", Request["SCK"]); } if (!string.IsNullOrEmpty(Request["TCK"])) { ReportView1.SetParameter("TCK", Request["TCK"]); } if (!string.IsNullOrEmpty(Request["CPH"])) { ReportView1.SetParameter("CPH", Request["CPH"]); } if (!string.IsNullOrEmpty(Request["OutStatus"])) { ReportView1.SetParameter("OutStatus", Request["OutStatus"]); } if (!string.IsNullOrEmpty(Request["Status"])) { ReportView1.SetParameter("Status", Request["Status"]); } if (!string.IsNullOrEmpty(Request["OtVsIn"])) { ReportView1.SetParameter("OtVsIn", Request["OtVsIn"]); } if (!string.IsNullOrEmpty(Request["CKfromTime"])) { ReportView1.SetParameter("CKfromTime", Request["CKfromTime"]); } if (!string.IsNullOrEmpty(Request["CKtoTime"])) { ReportView1.SetParameter("CKtoTime", Request["CKtoTime"]); } if (!string.IsNullOrEmpty(Request["RKfromTime"])) { ReportView1.SetParameter("RKfromTime", Request["RKfromTime"]); } if (!string.IsNullOrEmpty(Request["RKtoTime"])) { ReportView1.SetParameter("RKtoTime", Request["RKtoTime"]); } }