public void connectOnOBjects() { OBJECTSONLib.UnioaifCtrl onObjects; onObjects = new OBJECTSONLib.UnioaifCtrl(); onObjects.AccountPath = "WEB.BASE.THIN"; onObjects.HostName = "10.11.11.10"; if (onObjects.Connect()) { var gSubRoutine = onObjects.Subroutine("DELQ.ACT.INQ", 6); //ACRO.INQ TAKES LOGON, ACRO, FIRSTNAME, DOB, DATA, ERRORMSG gSubRoutine.setArg(0, "WEB.BASE"); //LOGON gSubRoutine.setArg(1, txtAccount.Text.ToUpper().Trim()); //ACRO gSubRoutine.setArg(2, ""); //FLAG - THIS IS WHAT SCREEN IS NEXT - POSSIBLE RESPONSES = "", I. VO, 3 OR 4 gSubRoutine.setArg(3, ""); //MSG - THIS gSubRoutine.setArg(4, ""); //DATA LEAVE BLANK - THIS IS WHERE THE ATTRIBUTE FOR THE RETURN VALUES gSubRoutine.setArg(5, ""); //ERROR LEAVE BLANK - ERROR MESSAGE WILL BE PASSED BACK HERE gSubRoutine.call(); //add a check here if empty - pjp string strText = gSubRoutine.getArg(4); int intPipe = strText.IndexOf("|"); string strInsured = strText.Substring(0, intPipe); string strGridText = strText.Substring(intPipe + 1); lblPatientName.Text = "Patient: " + strInsured; m_FollowViews = new ActionFollowUpViews(strGridText); onObjects.Disconnect(); } else { string x = "not connected"; } }
public void connectOnOBjects(string inquiryType) { OBJECTSONLib.UnioaifCtrl onObjects; onObjects = new OBJECTSONLib.UnioaifCtrl(); onObjects.AccountPath = "WEB.BASE.THIN"; onObjects.HostName = "10.11.11.10"; if (onObjects.Connect()) { var gSubRoutine = onObjects.Subroutine("ACRO.INQ", 6); //ACRO.INQ TAKES LOGON, ACRO, FIRSTNAME, DOB, DATA, ERRORMSG gSubRoutine.setArg(0, "WEB.BASE"); //LOGON gSubRoutine.setArg(1, txtAcronym.Text.ToUpper().Trim()); //ACRO gSubRoutine.setArg(2, txtAcronymFirstName.Text.ToUpper().Trim()); //FIRSTNAME - OPTIONAL - FORMAT IS MM/DD/YYYY gSubRoutine.setArg(3, txtAcronymDOB.Text.Trim()); //DOB - OPTIONAL gSubRoutine.setArg(4, ""); //DATA LEAVE BLANK - THIS IS WHERE THE ATTRIBUTE FOR THE RETURN VALUES gSubRoutine.setArg(5, ""); //ERROR LEAVE BLANK - ERROR MESSAGE WILL BE PASSED BACK HERE gSubRoutine.call(); string strText = gSubRoutine.getArg(4); m_Accounts = new AccountViews(strText); onObjects.Disconnect(); } else { string x = "not connected"; } }