📄 form_list.cs
字号:
}
//------------------------------------------------------------------
// 执行人
public int ZXMan
{
get
{
if (this.RowCount == 0) return 0;
return Convert.ToInt32(this.GetItemDouble(this.CurrentRow, "zxman"));
}
set
{
if (this.RowCount == 0) return;
this.SetItemDouble(this.CurrentRow, "zxman", value);
}
}
// 执行部门
public int ZXDept
{
get
{
if (this.RowCount == 0) return 0;
return Convert.ToInt32(this.GetItemDouble(this.CurrentRow, "zxdept"));
}
set
{
if (this.RowCount == 0) return;
this.SetItemDouble(this.CurrentRow, "zxdept", value);
}
}
// 执行日期
public int ZXDate
{
get
{
if (this.RowCount == 0) return 0;
return Convert.ToInt32(this.GetItemDouble(this.CurrentRow, "zxdate"));
}
set
{
if (this.RowCount == 0) return;
this.SetItemDouble(this.CurrentRow, "zxdate", value);
}
}
// 执行时间
public int ZXTime
{
get
{
if (this.RowCount == 0) return 0;
return Convert.ToInt32(this.GetItemDouble(this.CurrentRow, "zxtime"));
}
set
{
if (this.RowCount == 0) return;
this.SetItemDouble(this.CurrentRow, "zxtime", value);
}
}
// 申请单最后的版本号
public int Version
{
get
{
if (this.RowCount == 0) return 0;
try
{
return Convert.ToInt32(this.GetItemDouble(this.CurrentRow, "LastVersion"));
}
catch
{
return 0;
}
}
set
{
if (this.RowCount == 0) return;
this.SetItemDouble(this.CurrentRow, "LastVersion", value);
}
}
// 优惠类型
public string YouhuiLX
{
get
{
if (this.RowCount == 0) return "NoData";
return this.GetItemString(this.CurrentRow, "YouhuiLX");
}
set
{
if (this.RowCount == 0) return;
this.SetItemString(this.CurrentRow, "YouhuiLX", value);
}
}
// ---------------------------------- 挂号相关
// 看诊日期
public int RegDate
{
get
{
if (this.RowCount == 0) return 0;
return Convert.ToInt32(this.GetItemDouble(this.CurrentRow, "regdate"));
}
set
{
if (this.RowCount == 0) return;
this.SetItemDouble(this.CurrentRow, "regdate", value);
}
}
// 看诊时段
public string Reg_AP
{
get
{
if (this.RowCount == 0) return "NoData";
return this.GetItemString(this.CurrentRow, "Reg_AP");
}
set
{
if (this.RowCount == 0) return;
this.SetItemString(this.CurrentRow, "Reg_AP", value);
}
}
// 看诊序号
public int Reg_No
{
get
{
if (this.RowCount == 0) return 0;
try
{
return Convert.ToInt32(this.GetItemDouble(this.CurrentRow, "Reg_No"));
}
catch
{
return 0;
}
}
set
{
if (this.RowCount == 0) return;
this.SetItemDouble(this.CurrentRow, "Reg_No", value);
}
}
// 诊别
public string Reg_Type
{
get
{
if (this.RowCount == 0) return "NoData";
return this.GetItemString(this.CurrentRow, "RegType");
}
set
{
if (this.RowCount == 0) return;
this.SetItemString(this.CurrentRow, "RegType", value);
}
}
// 看诊科别
public int Reg_Dept
{
get
{
if (this.RowCount == 0) return 0;
return Convert.ToInt32(this.GetItemDouble(this.CurrentRow, "RegDept"));
}
set
{
if (this.RowCount == 0) return;
this.SetItemDouble(this.CurrentRow, "RegDept", value);
}
}
// 看诊二级学科
public int Reg_Dept_2
{
get
{
if (this.RowCount == 0) return 0;
return Convert.ToInt32(this.GetItemDouble(this.CurrentRow, "RegDept_2"));
}
set
{
if (this.RowCount == 0) return;
this.SetItemDouble(this.CurrentRow, "RegDept_2", value);
}
}
// 看诊医师
public int Reg_Doctor
{
get
{
if (this.RowCount == 0) return 0;
return Convert.ToInt32(this.GetItemDouble(this.CurrentRow, "RegDoctor"));
}
set
{
if (this.RowCount == 0) return;
this.SetItemDouble(this.CurrentRow, "RegDoctor", value);
}
}
// 金额
public double SUM
{
get
{
if (this.RowCount == 0) return 0;
try
{
return this.GetItemDouble(this.CurrentRow, "sum_ys");
}
catch
{
return 0;
}
}
set
{
if (this.RowCount == 0) return;
this.SetItemDouble(this.CurrentRow, "sum_ys", value);
}
}
// 贴数
public int TS
{
get
{
if (this.RowCount == 0) return 0;
try
{
return Convert.ToInt32(this.GetItemDouble(this.CurrentRow, "ts"));
}
catch
{
return 0;
}
}
set
{
if (this.RowCount == 0) return;
this.SetItemDouble(this.CurrentRow, "ts", value);
}
}
#endregion
#region 取数据的方法
public void SetDataById(int iId)
{
string SqlString = this.GetSqlSelect();
SqlString += "where id = " + iId.ToString();
this.SetSqlSelect(SqlString);
}
public void SetDataAsModel()
{
string SqlString = this.GetSqlSelect();
SqlString += "where Model_Sts = '0'";
this.SetSqlSelect(SqlString);
}
public void SetDataAsModel(string sModelType)
{
string SqlString = this.GetSqlSelect();
SqlString += "where Model_Sts = '0' and formtype = '"+sModelType+"'";
this.SetSqlSelect(SqlString);
}
public void SetDataAsNormal()
{
string SqlString = this.GetSqlSelect();
SqlString += "where Model_Sts = '1'";
this.SetSqlSelect(SqlString);
}
// 按照病历号检索数据
public void SetDataByPatID(string patID)
{
string SqlString = this.GetSqlSelect();
SqlString += "where Patient_ID = '"+patID+"'";
this.SetSqlSelect(SqlString);
}
public void SetDataByPatID(string patID, string stsJS)
{
string SqlString = this.GetSqlSelect();
SqlString += "where Patient_ID = '" + patID + "' and sts_JS ='"+stsJS+"' and sts_ZF='F'";
this.SetSqlSelect(SqlString);
}
#endregion
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -