Пример #1
0
        /// <summary>
        /// Retrieve the KYD List.
        /// </summary>
        /// <param name="dcrDate"></param>
        /// <param name="Key_Column"></param>
        /// <returns></returns>
        public List <KYDModel> GetKYDCustomerList(string dcrDate, string Key_Column)
        {
            try
            {
                // Creates instance.
                _blKYD   = new BL_KYD();
                _objCurr = new CurrentInfo();

                string company_Code = _objCurr.GetCompanyCode();
                string user_Code    = _objCurr.GetUserCode();

                // Reterievs the KYD Customer list.
                IEnumerable <KYDModel> IlstKYDCustomers = _blKYD.GetKYDCustomerList(company_Code, user_Code, dcrDate, Key_Column);
                if (IlstKYDCustomers != null)
                {
                    List <KYDModel> lstKYDCustomers = IlstKYDCustomers.ToList();

                    return(lstKYDCustomers);
                }
                else
                {
                    return(null);
                }
            }
            catch
            {
                throw;
            }
        }
Пример #2
0
        /// <summary>
        /// Used to Get KYD is enable or not for Desigantion
        /// </summary>
        /// <returns></returns>
        public JsonResult GetConfigurationValues()
        {
            try
            {
                List <KYD_Config_Values> lstconfigvalues = new List <KYD_Config_Values>();
                _blKYD   = new BL_KYD();
                _objCurr = new DataControl.CurrentInfo();

                lstconfigvalues = _blKYD.GetConfigValues(_objCurr.GetCompanyCode(), _objCurr.GetUserTypeName()).ToList();
                return(Json(lstconfigvalues, JsonRequestBehavior.AllowGet));
            }
            catch
            {
                throw;
            }
        }
Пример #3
0
        /// <summary>
        /// Used to check if there is any duplicate value entered or not
        /// </summary>
        /// <param name="KYDDoctordetails_arr"></param>
        /// <param name="duplicateKeycolumn"></param>
        /// <returns></returns>
        public JsonResult DuplicateValidationOnKYD(string KYDDoctordetails_arr, string duplicateKeycolumn)
        {
            List <KYDModel> lstCheckDuplicationonKYD = new List <KYDModel>();

            _blKYD   = new BL_KYD();
            _objCurr = new DataControl.CurrentInfo();
            try
            {
                lstCheckDuplicationonKYD = _blKYD.DuplicateValidationOnKYD(_objCurr.GetCompanyCode(), duplicateKeycolumn, KYDDoctordetails_arr, _objCurr.GetRegionCode()).ToList();

                return(Json(lstCheckDuplicationonKYD));
            }
            catch
            {
                throw;
            }
        }
Пример #4
0
        /// <summary>
        /// Save Doctor List
        /// </summary>
        /// <param name="KYDDoctordetails_arr"></param>
        /// <param name="duplicateKeycolumn"></param>
        /// <returns></returns>
        public string SaveKYDInfo(string KYDDoctordetails_arr, string duplicateKeycolumn)
        {
            _blKYD   = new BL_KYD();
            _objCurr = new DataControl.CurrentInfo();
            string result = string.Empty;

            try
            {
                result = _blKYD.SaveKYDInfo(_objCurr.GetCompanyCode(), duplicateKeycolumn, KYDDoctordetails_arr, _objCurr.GetRegionCode());
                return(result);
            }
            catch (Exception ex)
            {
                Dictionary <string, string> dicContext = new Dictionary <string, string>();
                dicContext.Add("duplicateKeycolumn", duplicateKeycolumn);
                dicContext.Add("KYDDoctordetails_arr", KYDDoctordetails_arr);
                return(ex.Message.ToString());
            }
        }