本文整理汇总了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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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;
}
示例8: PrintQueueEntryList
public PrintQueueEntryList(bool include)
{
includePrinted = include ? 1 : 0;
constructor_args = null;
this.pc = new ParameterCollection();
pc.Add("includePrinted", includePrinted);
}
示例9: BackgroundLoadWork
/**************************************************************************************************/
public override void BackgroundLoadWork()
{
ParameterCollection pc = new ParameterCollection();
pc.Add("clinicId", clinicId);
DoLoadWithSpAndParams("sp_3_LoadAtRisk", pc);
DoLoadWithSpAndParams("sp_3_LoadDashboardCounts", pc);
}
示例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());
}
}
示例11: BackgroundPersistWork
/**************************************************************************************************/
public override void BackgroundPersistWork(HraModelChangedEventArgs e)
{
var pc = new ParameterCollection();
pc.Add("unitnum", unitnum);
DoPersistWithSpAndParams(e,
"sp_3_Save_PedigreeAnnotations",
ref pc);
}
示例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);
}
示例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();
}
示例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);
}
示例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;
}