protected DataTable Query(string strDept, string strAcctMonth) { DataTable dtout = new DataTable(); Hashtable htapp = (Hashtable)Application["appconf"]; string strcons = (string)htapp["cons"]; StoBusi = new BusiComm.StorageBusi(strcons); StoBusi = new BusiComm.StorageBusi(strcons); try { dtout = StoBusi.GetDailySaleChart(strAcctMonth, strDept); if (dtout == null) { this.Popup("查询出错,请重试!"); return(dtout); } else { return(dtout); } } catch (Exception) { this.Popup("查询错误,请重试!"); return(dtout); } }
protected DataTable Query(string strAcctMonth) { DataTable dtout = new DataTable(); Hashtable htapp = (Hashtable)Application["appconf"]; string strcons = (string)htapp["cons"]; StoBusi = new BusiComm.StorageBusi(strcons); try { dtout = StoBusi.GetDailySaleChart(strAcctMonth, strDeptID1); if (dtout == null) { this.SetErrorMsgPageBy2dir("查询出错,请重试!"); return(dtout); } else { return(dtout); } } catch (Exception er) { this.clog.WriteLine(er); this.SetErrorMsgPageBy2dir("查询错误,请重试!"); return(dtout); } }