Example #1
0
        private void GetCollectResult()
        {
            dayReport = new Report.InpatientFee.Class.DayReport();
            Class.DayReport obj       = null;
            string          statCodes = string.Empty;

            for (int i = 0; i < this.neuSpread1_Sheet1.Rows.Count; i++)
            {
                if (this.neuSpread1_Sheet1.Cells[i, 0].Text == "True")
                {
                    if (this.neuSpread1_Sheet1.Rows[i].Tag == null)
                    {
                        continue;
                    }
                    obj = this.neuSpread1_Sheet1.Rows[i].Tag as Class.DayReport;
                    collectEnvironment.Add(obj);
                    statCodes += obj.StatNO + ",";
                }
            }
            if (statCodes == string.Empty)
            {
                MessageBox.Show("请选择所要统计的数据!");
                return;
            }
            statCodes = statCodes.Substring(0, statCodes.LastIndexOf(","));
            dayReport = feeDayReport.SelectDayReport(statCodes, 1);
            this.FindForm().DialogResult = DialogResult.OK;
            this.FindForm().Close();
        }
Example #2
0
 private void GetQueryResult()
 {
     if (this.neuSpread1_Sheet1.ActiveRow.Tag == null)
     {
         return;
     }
     Class.DayReport obj = this.neuSpread1_Sheet1.ActiveRow.Tag as Class.DayReport;
     dayReport = feeDayReport.SelectDayReport(obj.StatNO, 0);
     this.FindForm().DialogResult = DialogResult.OK;
     this.FindForm().Close();
 }