当前位置: 首页>>代码示例>>C#>>正文


C# ParameterCollection.Add方法代码示例

本文整理汇总了C#中RiskApps3.Utilities.ParameterCollection.Add方法的典型用法代码示例。如果您正苦于以下问题:C# ParameterCollection.Add方法的具体用法?C# ParameterCollection.Add怎么用?C# ParameterCollection.Add使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在RiskApps3.Utilities.ParameterCollection的用法示例。


在下文中一共展示了ParameterCollection.Add方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: SetLabels

        public void SetLabels(int id, string mutProb, string name, string relationship)
        {
            relId = id;

            //old v2 way:
            //testingWillingnessComboBox.Text =
            //    Patient.getRelativeValueFromDB("tblRiskDataRelatives", "testingWillingness", relId);

            RelativeValueHolder relValHolder = new RelativeValueHolder("");

            ParameterCollection pc = new ParameterCollection("unitnum", SessionManager.Instance.GetActivePatient().unitnum);
            pc.Add("relativeid", relId);
            pc.Add("table", "tblRiskDataRelatives");
            pc.Add("column", "testingWillingness");
            relValHolder.DoLoadWithSpAndParams("sp_3_LoadRelativeValue", pc);
            testingWillingnessComboBox.Text = relValHolder.relativeValue;

            if (string.IsNullOrEmpty(mutProb) == false)
            {
                try
                {
                    brcapro = (int)Math.Round(double.Parse(mutProb));
                    if (brcapro > 0)
                    {
                        BrcaLabel.Text = brcapro.ToString() + "%";
                    }
                    else
                    {
                        BrcaLabel.Text = "";
                    }
                }
                catch { }
            }
            else
            {
                BrcaLabel.Text = "";
            }
            // You might well not know the mother's name (e.g.)
            if (!String.IsNullOrEmpty(name))
            {
                if (name.Contains(" "))
                {
                    string[] tokens = name.Split(' ');
                    if (name.Contains(','))
                        name = tokens[1].Replace(",","");
                    else
                        name = tokens[0];
                }
                //NameLabel.Text = name;
                RelationshipLabel.Text = name;
            }
            else
            {
                RelationshipLabel.Text = relationship;
            }
            RelationshipLabel.Text = RelationshipLabel.Text.Replace(" ", Environment.NewLine);
            int delta = this.Height - RelationshipLabel.Height;
            RelationshipLabel.Location = new Point(RelationshipLabel.Location.X, delta / 2);
        }
开发者ID:mahitosh,项目名称:HRA4,代码行数:59,代码来源:RelativeToConsiderRow.cs

示例2: BackgroundPersistWork

        /*******************************************************************************/
        public override void BackgroundPersistWork(HraModelChangedEventArgs e)
        {
            ParameterCollection pc = new ParameterCollection();
            pc.Add("paragraphID", paragraphID);
            pc.Add("providerID", providerID);

            DoPersistWithSpAndParams(e,
                                     "sp_3_Save_ProviderParagraph",
                                     ref pc);
        }
开发者ID:mahitosh,项目名称:HRA4,代码行数:11,代码来源:ProviderParagraph.cs

示例3: BackgroundPersistWork

 /**************************************************************************************************/
 public override void BackgroundPersistWork(HraModelChangedEventArgs e)
 {
     ParameterCollection pc = new ParameterCollection();
     pc.Add("unitnum", owner.person.owningFHx.proband.unitnum);
     pc.Add("relativeID", owner.person.relativeID);
     pc.Add("apptid", owner.person.owningFHx.proband.apptid);
     DoPersistWithSpAndParams(e,
                               "sp_3_Save_Nation",
                               ref pc);
 }
开发者ID:mahitosh,项目名称:HRA4,代码行数:11,代码来源:Nationality.cs

示例4: BackgroundLoadWork

        /**************************************************************************************************/
        public override void BackgroundLoadWork()
        {
            ParameterCollection pc = new ParameterCollection();
            pc.Add("clinicId", clinicId);
            pc.Add("when", date);

            //pc.Add("groupName", groupName);
            //pc.Add("userLogin", SessionManager.Instance.ActiveUser.userLogin);

            DoLoadWithSpAndParams("sp_3_GetMyPatientCounts", pc);
        }
开发者ID:mahitosh,项目名称:HRA4,代码行数:12,代码来源:MyPatients.cs

示例5: PersistFullObject

        //a customized persistence method for TcRiskByAge items
        public void PersistFullObject(HraModelChangedEventArgs e, string unitnum, int apptid, string version, DateTime? BMRS_EffectiveTime, Int64? BMRS_RequestId)
        {
            ParameterCollection pc = new ParameterCollection();
            pc.Add("unitnum", unitnum);
            pc.Add("apptid", apptid);
            pc.Add("version", version);
            pc.Add("BMRS_EffectiveTime", BMRS_EffectiveTime);
            pc.Add("BMRS_RequestId", BMRS_RequestId);

            DoPersistWithSpAndParams(e,
                                        "sp_3_Save_TcRiskByAge",
                                        ref pc);
        }
开发者ID:mahitosh,项目名称:HRA4,代码行数:14,代码来源:TyrerCuzick.cs

示例6: backgroundWorker1_DoWork

        private void backgroundWorker1_DoWork(object sender, DoWorkEventArgs e)
        {
            LegacyCoreAPI.StartWorkingWithAppointment(apptid, "");

            ParameterCollection pc = new ParameterCollection();
            pc.Add("application", "RiskApps3");
            pc.Add("userLogin", SessionManager.Instance.ActiveUser.userLogin);
            pc.Add("machineName", System.Environment.MachineName);
            pc.Add("message", "Accessed appointment");
            pc.Add("apptID", apptid);

            BCDB2.Instance.RunSPWithParams("sp_3_AuditUserActivity", pc);
        }
开发者ID:mahitosh,项目名称:HRA4,代码行数:13,代码来源:MarkStartedAndPullForwardForm.cs

示例7: GetAreaProvidersByRelId

        private string GetAreaProvidersByRelId(int r)
        {
            string retval = "";

            if (proband != null)
            {
                string sqlStr = "SELECT zipcode, city, state FROM tblRelativeDetails WHERE [email protected] AND [email protected]";
                ParameterCollection pc = new ParameterCollection();
                pc.Add("relativeID", r);
                pc.Add("apptID", proband.apptid);

                DbDataReader reader = BCDB2.Instance.ExecuteReaderWithParams(sqlStr, pc);

                bool hasZipCode = false;
                String zipcode = "";
                String city = "";
                String state = "";

                if (reader.Read())
                {
                    zipcode = reader.GetValue(0).ToString();
                    city = reader.GetValue(1).ToString();
                    state = reader.GetValue(2).ToString();
                }
                reader.Close();

                if (zipcode != "")
                {
                    hasZipCode = ZipCodes.isValidZip(zipcode);
                }
                else
                {
                    zipcode = ZipCodes.getZipCode(city, state);
                    if (zipcode != "")
                    {
                        hasZipCode = ZipCodes.isValidZip(zipcode);
                    }
                }

                if (hasZipCode)
                {
                    retval = GetAreaProvidersByZipCode(zipcode);
                }

            }

            return retval;
        }
开发者ID:mahitosh,项目名称:HRA4,代码行数:48,代码来源:AreaProvidersTag.cs

示例8: PrintQueueEntryList

 public PrintQueueEntryList(bool include)
 {
     includePrinted = include ? 1 : 0;
     constructor_args = null;
     this.pc = new ParameterCollection();
     pc.Add("includePrinted", includePrinted);
 }
开发者ID:mahitosh,项目名称:HRA4,代码行数:7,代码来源:PrintQueueEntryList.cs

示例9: BackgroundLoadWork

 /**************************************************************************************************/
 public override void BackgroundLoadWork()
 {
     ParameterCollection pc = new ParameterCollection();
     pc.Add("clinicId", clinicId);
     DoLoadWithSpAndParams("sp_3_LoadAtRisk", pc);
     DoLoadWithSpAndParams("sp_3_LoadDashboardCounts", pc);
 }
开发者ID:mahitosh,项目名称:HRA4,代码行数:8,代码来源:AtRisk.cs

示例10: BackgroundPersistWork

        /**************************************************************************************************/
        public override void BackgroundPersistWork(HraModelChangedEventArgs e)
        {
            ParameterCollection pc = new ParameterCollection();

            try
            {
                pc.Add("ID", ID);
                pc.Add("parameterValue", parameterValue);

                SqlDataReader reader = BCDB2.Instance.ExecuteReaderSPWithParams("sp_3_SetQueueParameter", pc);
            }
            catch (Exception ee)
            {
                Logger.Instance.WriteToLog("Error saving QueueParameter: \r\n" + ee.InnerException.ToString());
            }
        }
开发者ID:mahitosh,项目名称:HRA4,代码行数:17,代码来源:QueueParameter.cs

示例11: BackgroundPersistWork

 /**************************************************************************************************/
 public override void BackgroundPersistWork(HraModelChangedEventArgs e)
 {
     var pc = new ParameterCollection();
     pc.Add("unitnum", unitnum);
     DoPersistWithSpAndParams(e,
                              "sp_3_Save_PedigreeAnnotations",
                              ref pc);
 }
开发者ID:mahitosh,项目名称:HRA4,代码行数:9,代码来源:PedigreeAnnotations.cs

示例12: BackgroundLoadWork

 /**************************************************************************************************/
 public override void BackgroundLoadWork()
 {
     ParameterCollection pc = new ParameterCollection();
     pc.Add("clinicId", clinicId);
     dt = new DataTable();
     SqlDataReader dr = BCDB2.Instance.ExecuteReaderSPWithParams("sp_3_LoadMyPatientsQueue", pc);
     dt.Load(dr);
 }
开发者ID:mahitosh,项目名称:HRA4,代码行数:9,代码来源:myPatientsQueue.cs

示例13: BackgroundLoadWork

        /**************************************************************************************************/
        public override void BackgroundLoadWork()
        {
            ParameterCollection pc = new ParameterCollection("unitnum", theProband.unitnum);
            pc.Add("apptid", theProband.apptid);
            DoLoadWithSpAndParams("sp_3_LoadProcHx", pc);

            breastBx.BackgroundLoadWork();
            base.BackgroundLoadWork();
        }
开发者ID:mahitosh,项目名称:HRA4,代码行数:10,代码来源:ProcedureHx.cs

示例14: backgroundWorker1_DoWork

        private void backgroundWorker1_DoWork(object sender, DoWorkEventArgs e)
        {
            //RiskAppCore.Globals.setApptID(apptid);
            //RiskAppCore.ApptUtils.MarkApptStartedAndPullForward();
            //SessionManager.Instance.GetActivePatient().hra_state = Model.HraObject.States.NULL;

            LegacyCoreAPI.StartWorkingWithAppointment(apptid,"");

            SessionManager.Instance.GetActivePatient().BackgroundLoadWork();

            ParameterCollection pc = new ParameterCollection();
            pc.Add("application", "RiskApps3");
            pc.Add("userLogin", SessionManager.Instance.ActiveUser.userLogin);
            pc.Add("machineName", System.Environment.MachineName);
            pc.Add("message", "Accessed appointment");
            pc.Add("apptID", apptid);

            BCDB2.Instance.RunSPWithParams("sp_3_AuditUserActivity", pc);
        }
开发者ID:mahitosh,项目名称:HRA4,代码行数:19,代码来源:MarkStartedAndPullForwardForm.cs

示例15: getZipCode

        public static String getZipCode(String city, string state)
        {
            String zipcode = "";

            String sqlStr = "SELECT zipcode FROM lkpZipCodes WHERE [email protected] AND [email protected]";
            ParameterCollection pc = new ParameterCollection();
            pc.Add("city",city);
            pc.Add("state",state);

            DbDataReader reader = BCDB2.Instance.ExecuteReaderWithParams(sqlStr, pc);

            if (reader.Read())
            {
                zipcode = reader.GetValue(0).ToString();
            }

            reader.Close();
            return zipcode;
        }
开发者ID:mahitosh,项目名称:HRA4,代码行数:19,代码来源:ZipCodes.cs


注:本文中的RiskApps3.Utilities.ParameterCollection.Add方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。