Example #1
0
        public DataTable GetDataNew()
        {
            string strStart = dateTimePickerStart.Value.ToString();

            string[] strListStart = strStart.Split(' ');
            strStart = strListStart[0].ToString() + " 00:00:00";

            string strEnd = dateTimePickerEnd.Value.ToString() + " 23:59:59";

            string[] strListEnd = strEnd.Split(' ');
            strEnd = strListEnd[0].ToString() + " 23:59:59";

            DataTable dt = new DataTable();

            dt.TableName = "getqc";
            using (gjtEmrPatients.emrPatients pi = new gjtEmrPatients.emrPatients())
            {
                // DataSet dst = pi.GetQCTableByMonthNew(strStart, strEnd, "$", Globals.DoctorID);

                if (ks)
                {
                    // dt = pi.ValuateNowPSSelect(strStart, strEnd, Globals.OpDepartID);
                    dt = pi.ValuateNowPSSelectKs(strStart, strEnd, Globals.OpDepartName);
                }

                else if (hz)
                {
                    // dt = pi.ValuateNowPjL(strStart, strEnd);
                    dt = pi.ValuateNowPSSelectHz(strStart, strEnd);
                }
                else if (qy)
                {
                    dt = pi.ValuateNowPSSelectQy(strStart, strEnd);
                }
                //dt = dst.Tables[0];
            }
            return(dt);
        }