예제 #1
0
        public JsonResult GetOBOUsers(string TypeName, string UserCode = "")
        {
            DataControl.CurrentInfo   objCurInfo = new DataControl.CurrentInfo();
            DataControl.BLMessaging   objMsg     = new DataControl.BLMessaging();
            DataControl.JSONConverter objJson    = new DataControl.JSONConverter();
            List <MVCModels.HiDoctor_Master.UserModel> lstUser = new List <MVCModels.HiDoctor_Master.UserModel>();

            if (string.IsNullOrEmpty(UserCode))
            {
                UserCode = objCurInfo.GetUserCode();
            }

            lstUser = objMsg.GetOBOUsers(objCurInfo.GetCompanyCode(), UserCode, TypeName).ToList();

            return(Json(objJson.Serialize(lstUser)));
        }