Ignore:
Timestamp:
Jan 9, 2011, 7:13:00 AM (13 years ago)
Author:
Sam Habiel
Message:

CGView:

  • Changed the parameters required for checkin.
  • Removed references to PCC+ and Stop Code processing, as they don't apply in VISTA.

CGDocument:

  • Changed RPC call parameters to check in an appointment (BSDX CHECKIN APPOINTMENT).
  • Date passed to BSDX Checkin Appointment is now an FM Date.
  • Both necessitated server side changes.

DCheckIn:

  • Removed processing for PCC+ and Stop Codes.

CGDocumentManager

  • Removed Clinic Stop Code table loading.
Location:
Scheduling/trunk/cs/bsdx0200GUISourceCode
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • Scheduling/trunk/cs/bsdx0200GUISourceCode/CGDocument.cs

    r1050 r1062  
    814814                }
    815815
    816                 public void CheckInAppointment(int nApptID, DateTime dCheckIn,
    817                         string ClinicStopIEN,
    818                         string ProviderIEN,
    819                         string PrintRouteSlip,
    820                         string PCCClinicIEN,
    821                         string PCCFormIEN,
    822                         string PCCOutGuide
    823                         )
    824                 {
    825                         string sCheckIn = dCheckIn.ToString("M-d-yyyy@HH:mm");
    826 
    827                         string sSql = "BSDX CHECKIN APPOINTMENT^" + nApptID.ToString() + "^" + sCheckIn + "^";
    828                         sSql += ClinicStopIEN + "^" + ProviderIEN + "^" + PrintRouteSlip + "^";
    829                         sSql += PCCClinicIEN + "^" + PCCFormIEN + "^" + PCCOutGuide;
     816                public void CheckInAppointment(int nApptID, DateTime dCheckIn)
     817                {
     818                        string sCheckIn = FMDateTime.Create(dCheckIn).FMDateString;
     819
     820            string sSql = "BSDX CHECKIN APPOINTMENT^" + nApptID.ToString() + "^" + sCheckIn; // +"^";
     821                        //sSql += ClinicStopIEN + "^" + ProviderIEN + "^" + PrintRouteSlip + "^";
     822                        //sSql += PCCClinicIEN + "^" + PCCFormIEN + "^" + PCCOutGuide;
    830823
    831824                        System.Data.DataTable dtAppt = m_DocManager.RPMSDataTable(sSql, "CheckInAppointment");
  • Scheduling/trunk/cs/bsdx0200GUISourceCode/CGDocumentManager.cs

    r1051 r1062  
    293293            threadSplash.Start(m_ds); // pass form as parameter.
    294294
    295             //There are 20 steps to load the application. That's max for the progress bar.
    296             setMaxProgressDelegate(20);
     295            //There are 19 steps to load the application. That's max for the progress bar.
     296            setMaxProgressDelegate(19);
    297297           
    298298            // smh--not used: System.Configuration.ConfigurationManager.GetSection("appSettings");
     
    300300            setStatusDelegate("Connecting to VISTA");
    301301           
    302                         bool bRetry = true;
    303 
    304302            //Try to connect using supplied values for Server and Port
    305303            //Why am I doing this? The library BMX net uses prompts for access and verify code
     
    322320            }
    323321
    324                        
     322
     323            bool bRetry = true;
     324
    325325            // Do block is Log-in logic
    326326            do
     
    470470            dtGroups.PrimaryKey = dcKeys;
    471471
    472             //Get Access Group Types (??)
     472            //Get Access Group Types (Combines Access Types and Groups)
     473            //Optimization Note: Can eliminate Access type and Access Group Table
     474            // But they are heavily referenced throughout the code.
    473475            // Table #7
    474476            setProgressDelegate(7);
     
    491493            //ResourceGroup Table (Resource Groups by User)
    492494            // Table #8
     495            // What shows up on the tree. The groups the user has access to.
    493496            setProgressDelegate(8);
    494497            setStatusDelegate(statusConst + " Resource Groups By User");
     
    497500            //Resources by user
    498501            // Table #9
     502            // Individual Resources
    499503            setProgressDelegate(9);
    500504            setStatusDelegate(statusConst + " Resources By User");
     
    508512            //GroupResources table
    509513            // Table #10
     514            // Resource Groups and Indivdual Resources together
    510515            setProgressDelegate(10);
    511516            setStatusDelegate(statusConst + " Group Resources");
     
    559564            //Build ResourceUser table
    560565            //Table #13
     566            //Acess to Resources by [this] User
    561567            setProgressDelegate(13);
    562568            setStatusDelegate(statusConst + " Resource User");
     
    577583            //Build active provider table
    578584            //Table #14
     585            //TODO: Lazy load the provider table; no need to load in advance.
    579586            setProgressDelegate(14);
    580587            setStatusDelegate(statusConst + " Providers");
     
    583590            Debug.Write("LoadGlobalRecordsets -- Provider loaded\n");
    584591
    585             //Build the CLINIC_STOP table
     592            //Build the HOLIDAY table
    586593            //Table #15
    587594            setProgressDelegate(15);
    588             setStatusDelegate(statusConst + " Clinic Stops");
    589             // sCommandText = "SELECT BMXIEN, CODE, NAME FROM CLINIC_STOP"; //SMH
    590             sCommandText = "SELECT BMXIEN, AMIS_REPORTING_STOP_CODE, NAME FROM CLINIC_STOP";
    591             ConnectInfo.RPMSDataTable(sCommandText, "ClinicStop", m_dsGlobal);
    592             Debug.Write("LoadGlobalRecordsets -- ClinicStop loaded\n");
    593 
    594             //Build the HOLIDAY table
    595             //Table #16
    596             setProgressDelegate(16);
    597595            setStatusDelegate(statusConst + " Holiday");
    598596            sCommandText = "SELECT NAME, DATE FROM HOLIDAY WHERE DATE > '" + DateTime.Today.ToShortDateString() + "'";
     
    613611                        // Event Subsriptions
    614612            setStatusDelegate("Subscribing to Server Events");
    615             //Table #17
     613            //Table #16
     614            setProgressDelegate(16);
     615            _current.m_ConnectInfo.SubscribeEvent("BSDX SCHEDULE");
     616                        //Table #17
    616617            setProgressDelegate(17);
    617             _current.m_ConnectInfo.SubscribeEvent("BSDX SCHEDULE");
     618            _current.m_ConnectInfo.SubscribeEvent("BSDX CALL WORKSTATIONS");
    618619                        //Table #18
    619620            setProgressDelegate(18);
    620             _current.m_ConnectInfo.SubscribeEvent("BSDX CALL WORKSTATIONS");
     621            _current.m_ConnectInfo.SubscribeEvent("BSDX ADMIN MESSAGE");
    621622                        //Table #19
    622623            setProgressDelegate(19);
    623             _current.m_ConnectInfo.SubscribeEvent("BSDX ADMIN MESSAGE");
    624                         //Table #20
    625             setProgressDelegate(20);
    626624            _current.m_ConnectInfo.SubscribeEvent("BSDX ADMIN SHUTDOWN");
    627625
  • Scheduling/trunk/cs/bsdx0200GUISourceCode/CGView.cs

    r1027 r1062  
    19411941                private void AppointmentCheckIn()
    19421942                {
    1943                         bool bDeleted = false;
     1943                       
    19441944                        int nApptID = this.calendarGrid1.SelectedAppointment;
    19451945                        Debug.Assert(nApptID != 0);
     
    19491949                        try
    19501950                        {
    1951 
    19521951                                bool bAlreadyCheckedIn = false;
    19531952                                if (a.CheckInTime.Ticks > 0)
     
    19781977                                        Debug.Write("CGView.AppointmentCheckIn Error: " + ex.Message);
    19791978                                }
    1980 
    19811979                               
    19821980                                string sProv = "";
    1983                                 string sProvReqd = "NO";
    1984                                 string sPCC = "NO";
    1985                                 string sMultCodes = "NO";
    1986                                 string sStopCode = "";
    1987                                 bool bProvReqd = false;
    1988                                 bool bPCC = false;
    1989                                 bool bMultCodes = false;
     1981
    19901982                                if (nHospLoc > 0)
    19911983                                {
     
    19931985                                        DataRow drHL = dr.GetParentRow(m_DocManager.GlobalDataSet.Relations["HospitalLocationResource"]);
    19941986                                        sProv = drHL["DEFAULT_PROVIDER"].ToString();
    1995                                         sStopCode = drHL["STOP_CODE_NUMBER"].ToString();
    1996 
    1997                                        
    1998                     //TODO: Remove this. This doesn't exist in VISTA.
    1999                     /*
    2000                     DataRow[] draCS = drHL.GetChildRows(m_DocManager.GlobalDataSet.Relations["HospitalLocationClinic"]);
    2001                                         if (draCS.GetLength(0) > 0)
    2002                                         {
    2003                                                 DataRow drCS = draCS[0];
    2004                                                 sProvReqd = drCS["VISIT_PROVIDER_REQUIRED"].ToString();
    2005                                                 sPCC = drCS["GENERATE_PCCPLUS_FORMS?"].ToString();
    2006                                                 sMultCodes = drCS["MULTIPLE_CLINIC_CODES_USED?"].ToString();
    2007                                         }
    2008                                         bProvReqd = (sProvReqd == "YES")?true:false;
    2009                                         bPCC = (sPCC == "YES")?true:false;
    2010                                         bMultCodes = (sMultCodes == "YES")?true:false;
    2011                      */
    20121987                                }
    20131988
    20141989                                DCheckIn dlgCheckin = new DCheckIn();
    2015                                 dlgCheckin.InitializePage(a, this.m_DocManager, sProv, bProvReqd, bPCC, bMultCodes, sStopCode, nHospLoc);
     1990                                dlgCheckin.InitializePage(a, this.m_DocManager, sProv, nHospLoc);
    20161991                                calendarGrid1.CGToolTip.Active = false;
    20171992                                if (dlgCheckin.ShowDialog(this) != DialogResult.OK)
     
    20272002                                DateTime dtCheckIn = dlgCheckin.CheckInTime;
    20282003
    2029                                 /*
    2030                                  * Need to pass Provider, ClinicStop, PrintRouteSlip,
    2031                                  * PCC Clinic, PCC Form, Print OutGuide
    2032                                  */
    2033 
    2034                                 this.Document.CheckInAppointment(nApptID, dtCheckIn,
    2035                          dlgCheckin.ClinicStopIEN,
    2036                          dlgCheckin.ProviderIEN,
    2037                          dlgCheckin.PrintRouteSlip,
    2038                          dlgCheckin.PCCClinicIEN,
    2039                          dlgCheckin.PCCFormIEN,
    2040                          dlgCheckin.PCCOutGuide
    2041                                         );
     2004                                this.Document.CheckInAppointment(nApptID, dtCheckIn);
    20422005                //smh new code
    2043                 if (dlgCheckin.PrintRouteSlip == "true") //TODO: strange that we use a string for a boolean value??
     2006                if (dlgCheckin.PrintRouteSlip)
    20442007                    this.printRoutingSlip.Print();
    20452008                // end new code
     
    20522015                        }
    20532016
    2054                         if (bDeleted == true)
    2055                         {
    2056                                 try
    2057                                 {
    2058                                         RaiseRPMSEvent("BSDX SCHEDULE" , m_Document.DocName);
    2059                                 }
    2060                                 catch (Exception ex)
    2061                                 {
    2062                                         Debug.Write(ex.Message);
    2063                                 }
    2064                                 this.calendarGrid1.Invalidate();
    2065                         }               
    20662017                }
    20672018
  • Scheduling/trunk/cs/bsdx0200GUISourceCode/ClinicalScheduling.csproj.user

    r1051 r1062  
    3737    </RemoteDebugMachine>
    3838    <StartAction>Project</StartAction>
    39     <StartArguments>/s=192.168.56.101 /p=9260 /a=shabiel12 /v=catdog.66</StartArguments>
     39    <StartArguments>/s=172.16.16.108 /p=9250 /a=abeer12 /v=abc,4321</StartArguments>
    4040    <StartPage>
    4141    </StartPage>
  • Scheduling/trunk/cs/bsdx0200GUISourceCode/DCheckIn.cs

    r964 r1062  
    4444        private System.Windows.Forms.Label label2;
    4545        private System.Windows.Forms.ComboBox cboProvider;
    46         private System.Windows.Forms.ComboBox cboStopCode;
    47         private System.Windows.Forms.Label lblStopCode;
    4846        private System.Windows.Forms.CheckBox chkRoutingSlip;
    49         private System.Windows.Forms.GroupBox grpPCCPlus;
    50         private System.Windows.Forms.ComboBox cboPCCPlusClinic;
    51         private System.Windows.Forms.Label label4;
    52         private System.Windows.Forms.ComboBox cboPCCPlusForm;
    53         private System.Windows.Forms.Label label5;
    54         private System.Windows.Forms.CheckBox chkPCCOutGuide;
    5547
    5648        private string m_sPatientName;
     
    5850        private string m_sProvider;
    5951        private string m_sProviderIEN;
    60         private string m_sStopCode;
    61         private string m_sStopCodeIEN;
    6252        private CGDocumentManager m_DocManager;
    6353        private DataSet m_dsGlobal;
     
    7161        private bool m_bInit;
    7262        public bool m_bPrintRouteSlip;
    73         private DateTime m_dAuxTime;
    74 
    75         /*
    76          * PCC Variables
    77          */
    78         private bool m_bPCC;
    79         private string m_sPCCClinicIEN;
    80         private string m_sPCCFormIEN;
    8163        private ToolTip toolTip1;
    82         private bool m_bPCCOutGuide;
    83 
     64       
    8465        #endregion Fields
    8566
     
    9879
    9980        /// <summary>
    100         /// Returns string representation of IEN of Clinic in VEN EHP CLINIC file
    101         /// </summary>
    102         public string PCCClinicIEN
     81        /// Returns 'true' if routing slip to be printed; otherwise 'false'
     82        /// </summary>
     83        public bool PrintRouteSlip
    10384        {
    10485            get
    10586            {
    106                 return this.m_sPCCClinicIEN;
    107             }
    108         }
    109 
    110         /// <summary>
    111         /// Returns string representation of IEN of template entry in VEN PCC TEMPLATE
    112         /// </summary>
    113         public string PCCFormIEN
     87                return m_bPrintRouteSlip;
     88            }
     89        }
     90
     91        /// <summary>
     92        /// Appointment checkin time
     93        /// </summary>
     94        public DateTime CheckInTime
    11495        {
    11596            get
    11697            {
    117                 return m_sPCCFormIEN;
    118             }
    119         }
    120 
    121         /// <summary>
    122         /// Returns 'true' if outguide to be printed; otherwise returns 'false'
    123         /// </summary>
    124         public string PCCOutGuide
    125         {
    126             get
    127             {
    128                 string sRet = (this.m_bPCCOutGuide == true) ? "true" : "false";
    129                 return sRet;
    130             }
    131         }
    132 
    133         /// <summary>
    134         /// Returns string representation of IEN of CLINIC STOP
    135         /// </summary>
    136         public string ClinicStopIEN
    137         {
    138             get
    139             {
    140                 return this.m_sStopCodeIEN;
    141             }
    142         }
    143 
    144         /// <summary>
    145         /// Returns 'true' if routing slip to be printed; otherwise 'false'
    146         /// </summary>
    147         public string PrintRouteSlip
    148         {
    149             get
    150             {
    151                 string sRet = (this.m_bPrintRouteSlip == true) ? "true" : "false";
    152                 return sRet;
    153             }
    154         }
    155 
    156         /// <summary>
    157         /// Appointment checkin time
    158         /// </summary>
    159         public DateTime CheckInTime
    160         {
    161             get
    162             {
    16398                return m_dCheckIn;
    16499            }
     
    169104        }
    170105
    171         /// <summary>
    172         /// Appointment end time
    173         /// </summary>
    174         public DateTime AuxTime
    175         {
    176             get
    177             {
    178                 return m_dAuxTime;
    179             }
    180             set
    181             {
    182                 m_dAuxTime = value;
    183             }
    184         }
    185106        #endregion Properties
    186107
     
    193114        /// <param name="docManager">Document Manager</param>
    194115        /// <param name="sDefaultProvider">Default provider</param>
    195         /// <param name="bProviderRequired">not used</param>
    196         /// <param name="bGeneratePCCPlus">not used</param>
    197         /// <param name="bMultCodes">not used</param>
    198         /// <param name="sStopCode">Stop Code</param>
    199116        public void InitializePage(CGAppointment a, CGDocumentManager docManager,
    200             string sDefaultProvider, bool bProviderRequired, bool bGeneratePCCPlus,
    201             bool bMultCodes, string sStopCode, int nHospLoc)
     117            string sDefaultProvider, int nHospLoc)
    202118        {
    203119            m_bInit = true;
     
    205121            m_dsGlobal = m_DocManager.GlobalDataSet;
    206122            int nFind = 0;
    207 
    208             //Provider processing
    209             m_bProviderRequired = bProviderRequired; //not used in VISTA --remove
    210123
    211124            //smh new code
     
    239152                cboProvider.SelectedIndex = nFind;
    240153
    241                 //an experiment (doesn't work yet, but leaving for future enlightenment): LINQ
    242                 var defProv = from Provider in m_dtProvider.AsEnumerable()
    243                               where Provider.Field<string>("DEFAULT") == "YES"
    244                               select Provider;
    245 
    246154            }
    247155            //otherwise, just use the default provider table
     
    266174
    267175
    268             //Stop code processing
    269             //TODO: Remove... not in VISTA.
    270             this.lblStopCode.Visible = false;
    271             this.cboStopCode.Visible = false;
    272             m_dvCS = new DataView(m_dsGlobal.Tables["ClinicStop"]);
    273             m_dvCS.Sort = "NAME ASC";
    274             m_sStopCode = sStopCode;
    275             m_sStopCodeIEN = "";
    276             if (m_sStopCode != "")
    277             {
    278                 //Get the IEN of the clinic stop code
    279                 nFind = m_dvCS.Find((string)m_sStopCode);
    280                 Debug.Assert(nFind > -1);
    281                 if (nFind > -1)
    282                 {
    283                     m_sStopCodeIEN = m_dvCS[nFind].Row["BMXIEN"].ToString();
    284                 }
    285             }
    286 
    287             if (bMultCodes == true)
    288             {
    289                 this.lblStopCode.Visible = true;
    290                 this.cboStopCode.Visible = true;
    291                 cboStopCode.DataSource = m_dvCS;
    292                 cboStopCode.DisplayMember = "NAME";
    293                 cboStopCode.ValueMember = "BMXIEN";
    294                 if (m_sStopCode != "")
    295                 {
    296                     nFind = m_dvCS.Find((string)m_sStopCode);
    297                     cboStopCode.SelectedIndex = nFind;
    298                 }
    299             }
    300 
    301             m_bPCC = bGeneratePCCPlus;
    302             PCCPlus();
    303 
    304176            m_sPatientName = a.PatientName;
    305177            if (a.CheckInTime.Ticks != 0)
     
    314186                m_dCheckIn = DateTime.Now;
    315187            }
     188
    316189            UpdateDialogData(true);
    317190            m_bInit = false;
    318 
    319             //Synchronize PCCForm with Clinic
    320             if (m_bPCC == true)
    321             {
    322                 cboPCCPlusClinic_SelectedIndexChanged(this, new System.EventArgs());
    323             }
    324         }
    325 
    326         /// <summary>
    327         /// Not used in VISTA. Needs to be removed
    328         /// <remarks>Not used in VISTA.</remarks>
    329         /// </summary>
    330         private void PCCPlus()
    331         {
    332             //PCCPlus processing
    333             /*Can't do PCCPlus if no stop code
    334                 * or if PRINT PCC PLUS FORM field in CLINIC SETUP PARAMETERS is false
    335                 */
    336             if ((m_bPCC == false) || (m_sStopCode == ""))
    337             {
    338                 grpPCCPlus.Enabled = false;
    339                 return;
    340             }
    341             else
    342             {
    343                 grpPCCPlus.Enabled = true;
    344                 //Populate combo box with recordset of clinics based on m_sStopCode
    345                 string sCmd = "SELECT BMXIEN, NAME, DEPARTMENT, DEFAULT_ENCOUNTER_FORM, NEVER_PRINT_OUTGUIDE FROM VEN_EHP_CLINIC WHERE DEPARTMENT = '" + m_sStopCode + "'";
    346                 m_dtClinic = m_DocManager.ConnectInfo.RPMSDataTable(sCmd, "CLINIC");
    347                 m_dvClinic = new DataView(m_dtClinic);
    348                 m_dvClinic.Sort = "NAME ASC";
    349 
    350                 cboPCCPlusClinic.DataSource = m_dvClinic;
    351                 cboPCCPlusClinic.DisplayMember = "NAME";
    352                 cboPCCPlusClinic.ValueMember = "BMXIEN";
    353 
    354 
    355                 //Populate combo box with recordset of all forms
    356                 sCmd = "SELECT BMXIEN, TEMPLATE FROM VEN_EHP_EF_TEMPLATES";
    357                 m_dtForm = m_DocManager.ConnectInfo.RPMSDataTable(sCmd, "FORM");
    358                 m_dvForm = new DataView(m_dtForm);
    359                 m_dvForm.Sort = "TEMPLATE ASC";
    360 
    361                 cboPCCPlusForm.DataSource = m_dvForm;
    362                 cboPCCPlusForm.DisplayMember = "TEMPLATE";
    363                 cboPCCPlusForm.ValueMember = "BMXIEN";
    364 
    365                 if ((m_dtClinic.Rows.Count == 0) || (m_dtForm.Rows.Count == 0))
    366                 {
    367                     //No PCCPlus clinics for current stop code
    368                     //or no forms available
    369                     grpPCCPlus.Enabled = false;
    370                     return;
    371                 }
    372 
    373                 cboPCCPlusClinic.SelectedIndex = 0;
    374                 cboPCCPlusClinic_SelectedIndexChanged(this, new System.EventArgs());
    375 
    376             }
    377         }
     191        }
     192
    378193
    379194        /// <summary>
     
    391206            else //Move data to member variables from dialog controls
    392207            {
    393 
    394                 /*
    395                  * Need to return Provider, ClinicStop, PrintRouteSlip,
    396                  * PCC Clinic, PCC Form, Print OutGuide
    397                  */
    398 
    399208                m_dCheckIn = this.dtpCheckIn.Value;
    400209                m_sProviderIEN = this.cboProvider.SelectedValue.ToString();
    401210                m_bPrintRouteSlip = chkRoutingSlip.Checked;
    402 
    403                 /*
    404                  * Don't get value from CLINIC STOP combo since
    405                  * it may not be enabled, and
    406                  * it updates the member variable whenever the selection changes
    407                  */
    408 
    409                 /*
    410                  * PCCPlus
    411                  */
    412 
    413                 if (grpPCCPlus.Enabled == false)
    414                 {
    415                     m_bPCC = false;
    416                     m_sPCCClinicIEN = "";
    417                     m_sPCCFormIEN = "";
    418                     m_bPCCOutGuide = false;
    419                 }
    420                 else
    421                 {
    422                     m_bPCC = true;
    423                     m_sPCCClinicIEN = this.cboPCCPlusClinic.SelectedValue.ToString();
    424                     m_sPCCFormIEN = this.cboPCCPlusForm.SelectedValue.ToString();
    425                     if (chkPCCOutGuide.Enabled == false)
    426                     {
    427                         m_bPCCOutGuide = false;
    428                     }
    429                     else
    430                     {
    431                         m_bPCCOutGuide = this.chkPCCOutGuide.Checked;
    432                     }
    433                 }
    434 
    435211            }
    436212        }
     
    460236        {
    461237            this.components = new System.ComponentModel.Container();
    462             System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(DCheckIn));
    463238            this.pnlPageBottom = new System.Windows.Forms.Panel();
    464239            this.cmdCancel = new System.Windows.Forms.Button();
     
    474249            this.cboProvider = new System.Windows.Forms.ComboBox();
    475250            this.label2 = new System.Windows.Forms.Label();
    476             this.cboStopCode = new System.Windows.Forms.ComboBox();
    477             this.lblStopCode = new System.Windows.Forms.Label();
    478251            this.chkRoutingSlip = new System.Windows.Forms.CheckBox();
    479             this.grpPCCPlus = new System.Windows.Forms.GroupBox();
    480             this.chkPCCOutGuide = new System.Windows.Forms.CheckBox();
    481             this.label4 = new System.Windows.Forms.Label();
    482             this.cboPCCPlusClinic = new System.Windows.Forms.ComboBox();
    483             this.cboPCCPlusForm = new System.Windows.Forms.ComboBox();
    484             this.label5 = new System.Windows.Forms.Label();
    485252            this.toolTip1 = new System.Windows.Forms.ToolTip(this.components);
    486253            this.pnlPageBottom.SuspendLayout();
    487254            this.pnlDescription.SuspendLayout();
    488255            this.grpDescriptionResourceGroup.SuspendLayout();
    489             this.grpPCCPlus.SuspendLayout();
    490256            this.SuspendLayout();
    491257            //
     
    495261            this.pnlPageBottom.Controls.Add(this.cmdOK);
    496262            this.pnlPageBottom.Dock = System.Windows.Forms.DockStyle.Bottom;
    497             this.pnlPageBottom.Location = new System.Drawing.Point(0, 360);
     263            this.pnlPageBottom.Location = new System.Drawing.Point(0, 203);
    498264            this.pnlPageBottom.Name = "pnlPageBottom";
    499265            this.pnlPageBottom.Size = new System.Drawing.Size(520, 40);
     
    523289            this.pnlDescription.Controls.Add(this.grpDescriptionResourceGroup);
    524290            this.pnlDescription.Dock = System.Windows.Forms.DockStyle.Bottom;
    525             this.pnlDescription.Location = new System.Drawing.Point(0, 288);
     291            this.pnlDescription.Location = new System.Drawing.Point(0, 131);
    526292            this.pnlDescription.Name = "pnlDescription";
    527293            this.pnlDescription.Size = new System.Drawing.Size(520, 72);
     
    546312            this.lblDescriptionResourceGroup.Size = new System.Drawing.Size(514, 53);
    547313            this.lblDescriptionResourceGroup.TabIndex = 0;
    548             this.lblDescriptionResourceGroup.Text = resources.GetString("lblDescriptionResourceGroup.Text");
     314            this.lblDescriptionResourceGroup.Text = "Use this panel to check in an appointment. A patient may only be checked-in once." +
     315                "";
    549316            //
    550317            // label1
     
    584351            this.label3.Size = new System.Drawing.Size(80, 16);
    585352            this.label3.TabIndex = 7;
    586             this.label3.Text = "CheckIn Time:";
     353            this.label3.Text = "Check-in Time:";
    587354            //
    588355            // lblPatientName
     
    609376            this.label2.Text = "Visit Provider:";
    610377            //
    611             // cboStopCode
    612             //
    613             this.cboStopCode.Location = new System.Drawing.Point(96, 128);
    614             this.cboStopCode.Name = "cboStopCode";
    615             this.cboStopCode.Size = new System.Drawing.Size(240, 21);
    616             this.cboStopCode.TabIndex = 13;
    617             this.cboStopCode.SelectedIndexChanged += new System.EventHandler(this.cboStopCode_SelectedIndexChanged);
    618             //
    619             // lblStopCode
    620             //
    621             this.lblStopCode.Location = new System.Drawing.Point(16, 128);
    622             this.lblStopCode.Name = "lblStopCode";
    623             this.lblStopCode.Size = new System.Drawing.Size(80, 16);
    624             this.lblStopCode.TabIndex = 7;
    625             this.lblStopCode.Text = "Stop Code:";
    626             //
    627378            // chkRoutingSlip
    628379            //
    629             this.chkRoutingSlip.Location = new System.Drawing.Point(368, 88);
     380            this.chkRoutingSlip.Location = new System.Drawing.Point(380, 93);
    630381            this.chkRoutingSlip.Name = "chkRoutingSlip";
    631382            this.chkRoutingSlip.Size = new System.Drawing.Size(128, 16);
     
    634385            this.toolTip1.SetToolTip(this.chkRoutingSlip, "Prints routing slip to the Windows Default Printer");
    635386            //
    636             // grpPCCPlus
    637             //
    638             this.grpPCCPlus.Controls.Add(this.chkPCCOutGuide);
    639             this.grpPCCPlus.Controls.Add(this.label4);
    640             this.grpPCCPlus.Controls.Add(this.cboPCCPlusClinic);
    641             this.grpPCCPlus.Controls.Add(this.cboPCCPlusForm);
    642             this.grpPCCPlus.Controls.Add(this.label5);
    643             this.grpPCCPlus.Location = new System.Drawing.Point(8, 168);
    644             this.grpPCCPlus.Name = "grpPCCPlus";
    645             this.grpPCCPlus.Size = new System.Drawing.Size(488, 104);
    646             this.grpPCCPlus.TabIndex = 15;
    647             this.grpPCCPlus.TabStop = false;
    648             this.grpPCCPlus.Text = "PCC Plus";
    649             //
    650             // chkPCCOutGuide
    651             //
    652             this.chkPCCOutGuide.Location = new System.Drawing.Point(360, 24);
    653             this.chkPCCOutGuide.Name = "chkPCCOutGuide";
    654             this.chkPCCOutGuide.Size = new System.Drawing.Size(96, 16);
    655             this.chkPCCOutGuide.TabIndex = 15;
    656             this.chkPCCOutGuide.Text = "Print Outguide";
    657             //
    658             // label4
    659             //
    660             this.label4.Location = new System.Drawing.Point(8, 24);
    661             this.label4.Name = "label4";
    662             this.label4.Size = new System.Drawing.Size(72, 16);
    663             this.label4.TabIndex = 8;
    664             this.label4.Text = "PCC+ Clinic:";
    665             //
    666             // cboPCCPlusClinic
    667             //
    668             this.cboPCCPlusClinic.Location = new System.Drawing.Point(88, 24);
    669             this.cboPCCPlusClinic.Name = "cboPCCPlusClinic";
    670             this.cboPCCPlusClinic.Size = new System.Drawing.Size(240, 21);
    671             this.cboPCCPlusClinic.TabIndex = 0;
    672             this.cboPCCPlusClinic.SelectedIndexChanged += new System.EventHandler(this.cboPCCPlusClinic_SelectedIndexChanged);
    673             //
    674             // cboPCCPlusForm
    675             //
    676             this.cboPCCPlusForm.Location = new System.Drawing.Point(88, 64);
    677             this.cboPCCPlusForm.Name = "cboPCCPlusForm";
    678             this.cboPCCPlusForm.Size = new System.Drawing.Size(240, 21);
    679             this.cboPCCPlusForm.TabIndex = 0;
    680             //
    681             // label5
    682             //
    683             this.label5.Location = new System.Drawing.Point(8, 64);
    684             this.label5.Name = "label5";
    685             this.label5.Size = new System.Drawing.Size(72, 16);
    686             this.label5.TabIndex = 8;
    687             this.label5.Text = "PCC+ Form:";
    688             //
    689387            // DCheckIn
    690388            //
    691389            this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
    692             this.ClientSize = new System.Drawing.Size(520, 400);
    693             this.Controls.Add(this.grpPCCPlus);
     390            this.ClientSize = new System.Drawing.Size(520, 243);
    694391            this.Controls.Add(this.chkRoutingSlip);
    695             this.Controls.Add(this.cboStopCode);
    696392            this.Controls.Add(this.cboProvider);
    697393            this.Controls.Add(this.lblPatientName);
     
    703399            this.Controls.Add(this.label3);
    704400            this.Controls.Add(this.label2);
    705             this.Controls.Add(this.lblStopCode);
    706401            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
    707402            this.Name = "DCheckIn";
     
    711406            this.pnlDescription.ResumeLayout(false);
    712407            this.grpDescriptionResourceGroup.ResumeLayout(false);
    713             this.grpPCCPlus.ResumeLayout(false);
    714408            this.ResumeLayout(false);
    715409
     
    724418        }
    725419
    726         private void cboStopCode_SelectedIndexChanged(object sender, System.EventArgs e)
    727         {
    728             /*
    729              * Whenever the stop code changes, the set of PCCPlus Clinic Selections change
    730              * except during init.
    731              */
    732             if (m_bInit == true)
    733                 return;
    734 
    735             //Change the value of m_sStopCode
    736             DataRowView drv = (DataRowView)this.cboStopCode.SelectedItem;
    737             string sStopCode = drv.Row["NAME"].ToString();
    738             m_sStopCode = sStopCode;
    739             m_sStopCodeIEN = drv.Row["BMXIEN"].ToString();
    740             PCCPlus();
    741         }
    742 
    743         private void cboPCCPlusClinic_SelectedIndexChanged(object sender, System.EventArgs e)
    744         {
    745             /*
    746              * Whenever the PCCPlus Clinic changes, the default EF TEMPLATE changes
    747              */
    748             if (m_bInit == true)
    749                 return;
    750 
    751             if (this.cboPCCPlusClinic.SelectedItem == null)
    752                 return;
    753 
    754             DataRowView drv = (DataRowView)this.cboPCCPlusClinic.SelectedItem;
    755             string sDefaultForm = drv.Row["DEFAULT_ENCOUNTER_FORM"].ToString();
    756 
    757             int nFind = this.m_dvForm.Find(sDefaultForm);
    758             if (nFind > -1)
    759             {
    760                 this.cboPCCPlusForm.SelectedIndex = nFind;
    761             }
    762         }
    763420        #endregion Events
    764 
    765 
    766421    }
    767422}
  • Scheduling/trunk/cs/bsdx0200GUISourceCode/DCheckIn.resx

    r804 r1062  
    118118    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
    119119  </resheader>
    120   <data name="lblDescriptionResourceGroup.Text" xml:space="preserve">
    121     <value>Use this panel to check in an appointment. A PCC visit will automatically be created for this patient at the check in date and time if the clinic is set up to create a visit at checkin.  A patient may only be checked-in once.</value>
    122   </data>
    123120  <metadata name="toolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
    124121    <value>17, 17</value>
Note: See TracChangeset for help on using the changeset viewer.