Ejemplo n.º 1
0
        /// <summary>
        /// Retrives the Doctor visit Details. Doctor, Product, Chemist and RCPA details for a date and user.
        /// </summary>
        /// <param name="dcrActualDate"></param>
        /// <param name="tpname"></param>
        /// <param name="cpname"></param>
        /// <param name="month"></param>
        /// <param name="year"></param>
        /// <returns></returns>
        public JsonResult GetDoctorVisitData(string dcrActualDate, string tpname, string cpname, string month, string year)
        {
            DataSet dsDoctorVisitData = _objSPData.GetDoctorVisitData(dcrActualDate);
            string  userCode          = _objcurrentInfo.GetUserCode();

            cpname = cpname == "0" ? "" : cpname;
            DataSet dsCPDoctors = _objSPData.GetCPDoctors(tpname, cpname, userCode, month, year);
            List <DCRDoctorVisitModel>    lstDoctorVisit    = new List <DCRDoctorVisitModel>();
            List <DCRProductDetailsModel> lstProductDetails = new List <DCRProductDetailsModel>();

            return(GetDoctorVisitJSON(dsDoctorVisitData, dsCPDoctors, dcrActualDate));
        }